dont give ppl top poster of the day for chudrama posts

master
Aevann 2024-11-15 13:42:32 +02:00
parent c8f10e53c9
commit 731ec55ef2
1 changed files with 1 additions and 0 deletions

View File

@ -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( user = db.query(User, func.sum(Post.upvotes)).join(Post, Post.author_id == User.id).filter(
Post.created_utc > t, Post.created_utc > t,
Post.hole != 'chudrama',
User.admin_level == 0, User.admin_level == 0,
).group_by(User).order_by(func.sum(Post.upvotes).desc()).first() ).group_by(User).order_by(func.sum(Post.upvotes).desc()).first()