forked from MarseyWorld/MarseyWorld
make deflector not stack
parent
f17bce610d
commit
201208e673
|
@ -366,8 +366,7 @@ def award_thing(v, thing_type, id):
|
||||||
else: author.rehab = int(time.time()) + 86400
|
else: author.rehab = int(time.time()) + 86400
|
||||||
badge_grant(user=author, badge_id=109)
|
badge_grant(user=author, badge_id=109)
|
||||||
elif kind == "deflector":
|
elif kind == "deflector":
|
||||||
if author.deflector: author.deflector += 36000
|
author.deflector = int(time.time()) + 36000
|
||||||
else: author.deflector = int(time.time()) + 36000
|
|
||||||
elif kind == "beano":
|
elif kind == "beano":
|
||||||
badge_grant(user=author, badge_id=128)
|
badge_grant(user=author, badge_id=128)
|
||||||
elif kind == "checkmark":
|
elif kind == "checkmark":
|
||||||
|
|
Loading…
Reference in New Issue