forked from rDrama/rDrama
1
0
Fork 0

print-debug smth on wpd

master
Aevann 2023-07-08 18:31:47 +03:00
parent 52959cec63
commit 36ff17a7d5
1 changed files with 1 additions and 9 deletions

View File

@ -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!", {