fix + rename
parent
170bc8feb0
commit
39a30d8c01
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue