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) { 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