From 731ec55ef234eb56c526395f7d2ad0887f404c26 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 15 Nov 2024 13:42:32 +0200 Subject: [PATCH] dont give ppl top poster of the day for chudrama posts --- files/helpers/cron.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/helpers/cron.py b/files/helpers/cron.py index d64781ee7..52536bd55 100644 --- a/files/helpers/cron.py +++ b/files/helpers/cron.py @@ -418,6 +418,7 @@ def _set_top_poster_of_the_day_id(): user = db.query(User, func.sum(Post.upvotes)).join(Post, Post.author_id == User.id).filter( Post.created_utc > t, + Post.hole != 'chudrama', User.admin_level == 0, ).group_by(User).order_by(func.sum(Post.upvotes).desc()).first()