diff --git a/files/helpers/cron.py b/files/helpers/cron.py index 83af865fc..2af9d360d 100644 --- a/files/helpers/cron.py +++ b/files/helpers/cron.py @@ -126,7 +126,7 @@ def cron(**kwargs): cron_fn(**kwargs) def _grant_one_year_badges(): - one_year_ago = int(time.time()) - 364 * 86400 + one_year_ago = int(time.time()) - 365.25 * 86400 notif_text = f"@AutoJanny has given you the following profile badge:\n\n{SITE_FULL_IMAGES}/i/{SITE_NAME}/badges/134.webp\n\n**1 Year Old 🥰**\n\nThis user has wasted an ENTIRE YEAR of their life here! Happy birthday!" cid = notif_comment(notif_text) @@ -141,7 +141,7 @@ def _grant_one_year_badges(): g.db.execute(_badge_query) def _grant_two_year_badges(): - two_years_ago = int(time.time()) - 729 * 86400 + two_years_ago = int(time.time()) - 730.5 * 86400 notif_text = f"@AutoJanny has given you the following profile badge:\n\n{SITE_FULL_IMAGES}/i/{SITE_NAME}/badges/237.webp\n\n**2 Years Old 🥰🥰**\n\nThis user has wasted TWO WHOLE BUTT YEARS of their life here! Happy birthday!" cid = notif_comment(notif_text)