From 4926cb3bcd1048fcaaaa4a060ca8c88b1ea58cdf Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 8 Sep 2021 19:21:04 +0200 Subject: [PATCH] gf --- files/routes/awards.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/files/routes/awards.py b/files/routes/awards.py index 298988dd6..2f5b7f09d 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -72,6 +72,14 @@ def shop(v): award["owned_num"] = row['last_award_count'] owned.append(award) + if v.patron: + for k, v in AWARDS: + if v.patron == 1: AWARDS[k]["price"] = AWARDS[k]["price"]*0.90 + elif v.patron == 2: AWARDS[k]["price"] = AWARDS[k]["price"]*0.85 + elif v.patron == 3: AWARDS[k]["price"] = AWARDS[k]["price"]*0.80 + elif v.patron == 4: AWARDS[k]["price"] = AWARDS[k]["price"]*0.75 + else: AWARDS[k]["price"] = AWARDS[k]["price"]*0.70 + return render_template("shop.html", owned=owned, awards=list(AWARDS.values()), v=v) @app.post("/buy/")