Revise marsify logic.

master
Snakes 2022-09-26 02:08:54 -04:00
parent f773d1fefc
commit 0b416dcf2c
Signed by: Snakes
GPG Key ID: E745A82778055C7E
2 changed files with 4 additions and 3 deletions

View File

@ -78,7 +78,7 @@ def award_timers(v, bot=False):
v.earlylife = None v.earlylife = None
notify_if_not_bot("Your earlylife status has expired!") notify_if_not_bot("Your earlylife status has expired!")
badge = v.has_badge(169) badge = v.has_badge(169)
if v.marsify and v.marsify < now: if v.marsify and v.marsify < now and v.marsify != 1:
v.marsify = 0 v.marsify = 0
if SITE_NAME != 'rDrama': notify_if_not_bot("Your marsify status has expired!") if SITE_NAME != 'rDrama': notify_if_not_bot("Your marsify status has expired!")
badge = v.has_badge(170) badge = v.has_badge(170)

View File

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