From 3343b8487dcc4a7d88b982f8884ce20a76e69382 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Sat, 5 Nov 2022 19:01:18 -0500 Subject: [PATCH] stats: rename `comments last_24h` to `comments last 24h` --- files/helpers/stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/stats.py b/files/helpers/stats.py index d81a9a951..73d5f2613 100644 --- a/files/helpers/stats.py +++ b/files/helpers/stats.py @@ -117,7 +117,7 @@ def stats(site=None): "commenting users": "{:,}".format(g.db.query(Comment.author_id).distinct().count()), "removed comments (by admins)": "{:,}".format(g.db.query(Comment).filter_by(is_banned=True).count()), "deleted comments (by author)": "{:,}".format(g.db.query(Comment).filter(Comment.deleted_utc > 0).count()), - "comments last_24h": "{:,}".format(g.db.query(Comment).filter(Comment.created_utc > day, Comment.author_id != AUTOJANNY_ID).count()), + "comments last 24h": "{:,}".format(g.db.query(Comment).filter(Comment.created_utc > day, Comment.author_id != AUTOJANNY_ID).count()), "post votes": "{:,}".format(g.db.query(Vote).count()), "comment votes": "{:,}".format(g.db.query(CommentVote).count()), "total upvotes": "{:,}".format(g.db.query(Vote).filter_by(vote_type=1).count() + g.db.query(CommentVote).filter_by(vote_type=1).count()),