From 7ed744caff6bd98ad291fbaea37b4faefc00110f Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 18 Apr 2024 14:55:36 +0200 Subject: [PATCH] do this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/6278351#context --- files/helpers/cron.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/files/helpers/cron.py b/files/helpers/cron.py index 5e65d0f3e..f590f6b6e 100644 --- a/files/helpers/cron.py +++ b/files/helpers/cron.py @@ -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)