Change reference of 'count' to 'tally' for consistency
This commit is contained in:
parent
06c3476c22
commit
0ee6423be8
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user