remove early life badge if status expired

master
justcool393 2022-09-30 16:20:53 -07:00 committed by GitHub
parent 78b668a870
commit 50689c9298
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -76,6 +76,7 @@ def award_timers(v, bot=False):
v.earlylife = None v.earlylife = None
notify_if_not_bot("Your earlylife status has expired!") notify_if_not_bot("Your earlylife status has expired!")
badge = v.has_badge(169) badge = v.has_badge(169)
if badge: g.db.delete(badge)
if v.marsify and v.marsify < now and v.marsify != 1: if v.marsify and v.marsify < now and v.marsify != 1:
v.marsify = 0 v.marsify = 0
if SITE_NAME != 'rDrama': notify_if_not_bot("Your marsify status has expired!") if SITE_NAME != 'rDrama': notify_if_not_bot("Your marsify status has expired!")