From d22d60b5f7c00540be7f01c2b3520ce954af658b Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 22 Sep 2022 01:52:39 +0200 Subject: [PATCH 1/2] fix typos --- files/routes/admin.py | 2 +- files/routes/awards.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 739942eb5..13b4fe9c4 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -857,7 +857,7 @@ def agendaposter(user_id, v): g.db.add(user) if days: note = f"for {days} days" - else: note = "permenantly" + else: note = "permanently" ma = ModAction( kind="agendaposter", diff --git a/files/routes/awards.py b/files/routes/awards.py index ca8a68293..e5eb14b21 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -173,7 +173,7 @@ def award_thing(v, thing_type, id): return {"error": "You can't use this award on yourself."}, 400 if kind == 'marsify' and author.marsify == 1: - return {"error": "User is already permenantly marsified!"}, 403 + return {"error": "User is already permanently marsified!"}, 403 if v.id != author.id: if author.deflector and v.deflector: From 610e1fbada43a2acfac5ab6d5a9be806608958d3 Mon Sep 17 00:00:00 2001 From: scitzocel <98491720+scitzocel@users.noreply.github.com> Date: Wed, 21 Sep 2022 20:22:08 -0400 Subject: [PATCH 2/2] Sneed (#362) * MARSEYANTISCHIZO Fixed betting that was fucked * Update admin.py --- files/routes/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 13b4fe9c4..072251672 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -211,7 +211,7 @@ def distribute(v, option_id): pool = 0 for o in post.options: - if o.exclusive == 2: pool += o.upvotes + if o.exclusive > 2: pool += o.upvotes pool *= 200 autojanny.coins -= pool