From cbbd3611979219b150f53da73e7c4bc698375160 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 28 Jun 2022 03:39:55 +0200 Subject: [PATCH] fix rehab award --- files/routes/awards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index 1043708b1..501b30823 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -286,7 +286,7 @@ def award_thing(v, thing_type, id): elif kind == "rehab": if author.rehab: author.rehab += 86400 else: author.rehab = int(time.time()) + 86400 - badge_grant(user=id, badge_id=109) + badge_grant(user=author, badge_id=109) elif kind == "deflector": if author.deflector: author.deflector += 36000 else: author.deflector = int(time.time()) + 36000