Change reference of 'count' to 'tally' for consistency

This commit is contained in:
swag 2023-05-12 21:38:57 -04:00
parent 06c3476c22
commit 0ee6423be8
2 changed files with 4 additions and 4 deletions

View File

@ -44,8 +44,8 @@ sub create($self, $thread_id, $author, $body, $hidden = 0, $flagged = 0) {
}
sub count_for($self, $thread_id) {
$self->pg->db->query(<<~'END_SQL', $thread_id)->hash->{'count'}
SELECT COUNT(*) AS count
$self->pg->db->query(<<~'END_SQL', $thread_id)->hash->{'tally'}
SELECT COUNT(*) AS tally
FROM remarks
WHERE thread_id = ?
AND NOT hidden_status;

View File

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