diff --git a/files/helpers/cron.py b/files/helpers/cron.py index a741369fa..97c036aa4 100644 --- a/files/helpers/cron.py +++ b/files/helpers/cron.py @@ -186,6 +186,7 @@ def _process_timer(attr, badge_ids, text, extra_attrs={}): if isinstance(val, InstrumentedAttribute): val = str(val).split('.')[1] val = getattr(user, val) + print(f'k: {k}, val: {val}', flush=True) setattr(user, k, val) #remove corresponding badges @@ -214,15 +215,6 @@ def _award_timers_task(): _process_timer(User.earlylife, [169], "The earlylife award you received has expired!") _process_timer(User.marsify, [170], "The marsify award you received has expired!") _process_timer(User.rainbow, [171], "The rainbow award you received has expired!") - _process_timer(User.queen, [285], "The queen award you received has expired!", { - User.username: User.prelock_username, - User.prelock_username: None, - }) - _process_timer(User.spider, [179], "The spider award you received has expired!") - _process_timer(User.namechanged, [281], "The namelock award you received has expired. You're now back to your old username!", { - User.username: User.prelock_username, - User.prelock_username: None, - }) #both awards and janny powers _process_timer(User.unban_utc, [], "Your temporary ban has expired!", {