marsify: make marsify awards last a day

remotes/1693176582716663532/tmp_refs/heads/watchparty
justcool393 2022-11-01 15:33:00 -05:00
parent f8cd0aa1fb
commit 651cd60aa2
1 changed files with 2 additions and 2 deletions

View File

@ -324,8 +324,8 @@ def award_thing(v, thing_type, id):
badge_grant(user=author, badge_id=150)
elif kind == 'marsify':
if not author.marsify or author.marsify != 1:
if author.marsify: author.marsify += 21600
else: author.marsify = int(time.time()) + 21600
if author.marsify: author.marsify += 86400
else: author.marsify = int(time.time()) + 86400
badge_grant(user=author, badge_id=170)
if thing_type == 'comment' and not author.deflector: