From 2ad04d472cd100041501de42afd6c9c8cc719bfc Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 23 Dec 2022 02:44:52 +0200 Subject: [PATCH] stack benefactor awards --- 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 f4ab395d5..23b724573 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -340,7 +340,8 @@ def award_thing(v, thing_type, id): else: author.progressivestack = int(time.time()) + 21600 badge_grant(user=author, badge_id=94) elif kind == "benefactor": - if author.patron: abort(409, f"@{author.username} is already a {patron.lower()}!") + if author.patron and not author.patron_utc: + abort(409, f"@{author.username} is already a {patron.lower()}!") author.patron = 1 if author.patron_utc: author.patron_utc += 2629746 else: author.patron_utc = int(time.time()) + 2629746