use the right table
This commit is contained in:
parent
920bdd1884
commit
2deaeca133
1 changed files with 4 additions and 8 deletions
|
@ -11,15 +11,11 @@ class HashBanTable extends Table
|
||||||
{
|
{
|
||||||
parent::__construct($db, $token);
|
parent::__construct($db, $token);
|
||||||
|
|
||||||
$this->table = "bans";
|
$this->table = "image_bans";
|
||||||
$this->base_query = "
|
$this->base_query = "SELECT * FROM image_bans";
|
||||||
SELECT * FROM (
|
|
||||||
SELECT bans.*, users.name AS banner
|
|
||||||
FROM bans JOIN users ON banner_id=users.id
|
|
||||||
) AS tbl1
|
|
||||||
";
|
|
||||||
|
|
||||||
$this->size = 10;
|
$this->size = 100;
|
||||||
|
$this->limit = 1000000;
|
||||||
$this->columns = [
|
$this->columns = [
|
||||||
new StringColumn("hash", "Hash"),
|
new StringColumn("hash", "Hash"),
|
||||||
new TextColumn("reason", "Reason"),
|
new TextColumn("reason", "Reason"),
|
||||||
|
|
Reference in a new issue