Return an actual number instead of string

This commit is contained in:
swaggboi 2022-08-17 11:00:19 -04:00
parent aad8d8f1e0
commit aa56927306

View File

@ -73,8 +73,8 @@ sub get_last_page($self) {
}
sub get_thread_count($self) {
$self->pg->db->query(<<~'END_SQL')->text()
SELECT COUNT(*)
$self->pg->db->query(<<~'END_SQL')->hash->{'count'}
SELECT COUNT(*) AS count
FROM threads
WHERE NOT hidden_status;
END_SQL