do this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/6278351#context
parent
96185fefcf
commit
7ed744caff
|
@ -391,9 +391,8 @@ def _set_top_poster_of_the_day_id():
|
|||
|
||||
user = user[0]
|
||||
|
||||
t = datetime.datetime.now()
|
||||
db.flush()
|
||||
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:")
|
||||
date = time.strftime("%B %d, %Y", time.gmtime())
|
||||
send_notification(user.id, f":marseyjam: Congratulations! You're the Top Poster of the Day for {date}! :marseyjam:")
|
||||
badge_grant(badge_id=327, user=user)
|
||||
|
||||
cache.set("top_poster_of_the_day_id", user.id, timeout=86400)
|
||||
|
|
Loading…
Reference in New Issue