forked from rDrama/rDrama
print-debug smth on wpd
parent
52959cec63
commit
36ff17a7d5
|
@ -186,6 +186,7 @@ def _process_timer(attr, badge_ids, text, extra_attrs={}):
|
||||||
if isinstance(val, InstrumentedAttribute):
|
if isinstance(val, InstrumentedAttribute):
|
||||||
val = str(val).split('.')[1]
|
val = str(val).split('.')[1]
|
||||||
val = getattr(user, val)
|
val = getattr(user, val)
|
||||||
|
print(f'k: {k}, val: {val}', flush=True)
|
||||||
setattr(user, k, val)
|
setattr(user, k, val)
|
||||||
|
|
||||||
#remove corresponding badges
|
#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.earlylife, [169], "The earlylife award you received has expired!")
|
||||||
_process_timer(User.marsify, [170], "The marsify 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.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
|
#both awards and janny powers
|
||||||
_process_timer(User.unban_utc, [], "Your temporary ban has expired!", {
|
_process_timer(User.unban_utc, [], "Your temporary ban has expired!", {
|
||||||
|
|
Loading…
Reference in New Issue