Return an actual number instead of string
This commit is contained in:
parent
aad8d8f1e0
commit
aa56927306
|
@ -73,8 +73,8 @@ sub get_last_page($self) {
|
||||||
}
|
}
|
||||||
|
|
||||||
sub get_thread_count($self) {
|
sub get_thread_count($self) {
|
||||||
$self->pg->db->query(<<~'END_SQL')->text()
|
$self->pg->db->query(<<~'END_SQL')->hash->{'count'}
|
||||||
SELECT COUNT(*)
|
SELECT COUNT(*) AS count
|
||||||
FROM threads
|
FROM threads
|
||||||
WHERE NOT hidden_status;
|
WHERE NOT hidden_status;
|
||||||
END_SQL
|
END_SQL
|
||||||
|
|
Loading…
Reference in New Issue
Block a user