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) {
|
sub count_for($self, $thread_id) {
|
||||||
$self->pg->db->query(<<~'END_SQL', $thread_id)->hash->{'count'}
|
$self->pg->db->query(<<~'END_SQL', $thread_id)->hash->{'tally'}
|
||||||
SELECT COUNT(*) AS count
|
SELECT COUNT(*) AS tally
|
||||||
FROM remarks
|
FROM remarks
|
||||||
WHERE thread_id = ?
|
WHERE thread_id = ?
|
||||||
AND NOT hidden_status;
|
AND NOT hidden_status;
|
||||||
|
|
|
@ -60,8 +60,8 @@ sub last_page($self) {
|
||||||
}
|
}
|
||||||
|
|
||||||
sub count($self) {
|
sub count($self) {
|
||||||
$self->pg->db->query(<<~'END_SQL')->hash->{'count'}
|
$self->pg->db->query(<<~'END_SQL')->hash->{'tally'}
|
||||||
SELECT COUNT(*) AS count
|
SELECT COUNT(*) AS tally
|
||||||
FROM threads
|
FROM threads
|
||||||
WHERE NOT hidden_status;
|
WHERE NOT hidden_status;
|
||||||
END_SQL
|
END_SQL
|
||||||
|
|
Loading…
Reference in New Issue
Block a user