From 50689c9298ca1451736dc12c9ec022a2e22ec2c1 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Fri, 30 Sep 2022 16:20:53 -0700 Subject: [PATCH] remove early life badge if status expired --- files/helpers/awards.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/helpers/awards.py b/files/helpers/awards.py index e310ec794..6986e59b6 100644 --- a/files/helpers/awards.py +++ b/files/helpers/awards.py @@ -76,6 +76,7 @@ def award_timers(v, bot=False): v.earlylife = None notify_if_not_bot("Your earlylife status has expired!") badge = v.has_badge(169) + if badge: g.db.delete(badge) if v.marsify and v.marsify < now and v.marsify != 1: v.marsify = 0 if SITE_NAME != 'rDrama': notify_if_not_bot("Your marsify status has expired!")