fix + rename

pull/225/head
Aevann 2024-02-23 20:27:16 +02:00
parent 170bc8feb0
commit 39a30d8c01
2 changed files with 2 additions and 2 deletions

View File

@ -400,4 +400,4 @@ def _set_top_poster_of_the_day_id():
send_notification(user.id, f":marseyjam: You're the Top Poster of the Day for the day of {t.year}-{t.month}-{t.day} :marseyjam:")
badge_grant(badge_id=327, user=user)
cache.set("top_poster_of_the_day". user.id)
cache.set("top_poster_of_the_day_id", user.id)

View File

@ -138,7 +138,7 @@ def emoji_count():
return g.db.query(Emoji).filter_by(submitter_id=None).count()
def top_poster_of_the_day():
uid = cache.get("top_poster_of_the_day") or SNAPPY_ID
uid = cache.get("top_poster_of_the_day_id") or SNAPPY_ID
user = g.db.query(User).filter_by(id=uid).one()
return user