From 3e28a1db56653ca9a7e8d0882e3cccf0e14d70a8 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 8 Sep 2021 19:48:13 +0200 Subject: [PATCH] fd --- files/routes/awards.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index 5000cb5d45..ca8abe9794 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -72,16 +72,18 @@ def shop(v): award["owned_num"] = row['last_award_count'] owned.append(award) - awards = AWARDS.values() + awards1 = AWARDS.values() + awards2 = [] if v.patron: - for val in awards: + for val in awards1: if v.patron == 1: val["price"] = int(val["price"]*0.90) elif v.patron == 2: val["price"] = int(val["price"]*0.85) elif v.patron == 3: val["price"] = int(val["price"]*0.80) elif v.patron == 4: val["price"] = int(val["price"]*0.75) else: val["price"] = int(val["price"]*0.70) + awards2.append(val) - return render_template("shop.html", owned=owned, awards=list(awards), v=v) + return render_template("shop.html", owned=owned, awards=awards2, v=v) @app.post("/buy/") @auth_required