From 769f20852b06a169d20d6f34744625c069ea6112 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Mon, 31 Oct 2022 23:53:27 -0500 Subject: [PATCH] features: use AWARDS feature for awarding, not badges --- files/routes/awards.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index 254b5b2d0..c249ceb2e 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -41,7 +41,7 @@ def shop(v): @app.post("/buy/") @limiter.limit("100/minute;200/hour;1000/day") @auth_required -@feature_required('BADGES') +@feature_required('AWARDS') def buy(v, award): @@ -124,7 +124,7 @@ def buy(v, award): @limiter.limit("1/second;30/minute;200/hour;1000/day") @limiter.limit("1/second;30/minute;200/hour;1000/day", key_func=lambda:f'{SITE}-{session.get("lo_user")}') @is_not_permabanned -@feature_required('BADGES') +@feature_required('AWARDS') def award_thing(v, thing_type, id): if thing_type == 'post': thing = get_post(id) else: thing = get_comment(id)