From 1adc447d18d3a52910b966d8b1755546f9ab6759 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 5 Jul 2023 23:45:57 +0300 Subject: [PATCH] do this https://rdrama.net/h/countryclub/post/79285/-/4493631#context --- files/routes/awards.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index ac809d5df..58a70e48e 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -470,7 +470,8 @@ def award_thing(v, thing_type, id): else: author.rehab = int(time.time()) + 86400 badge_grant(user=author, badge_id=109) elif kind == "deflector": - author.deflector = int(time.time()) + 36000 + if author.deflector: author.deflector += 36000 + else: author.deflector = int(time.time()) + 36000 elif kind == "beano": badge_grant(user=author, badge_id=128) elif kind == "checkmark":