From 647f941bc52e397a5f4579e156ae51a590486af5 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 8 Sep 2021 10:55:10 +0200 Subject: [PATCH] fd --- files/routes/awards.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index 972199665..7b5f5a5e1 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -64,13 +64,13 @@ def shop(v): .order_by(User.patron.desc(), AwardRelationship.kind.desc()) \ .join(User).filter(User.id == v.id).all() - owned = {} + owned = [] for row in (r._asdict() for r in query): kind = row['last_award_kind'] if kind in AWARDS.keys(): - owned[kind] = (AWARDS[kind], row['last_award_count']) + owned.append((AWARDS[kind], row['last_award_count'])) - print(owned.values()) + print(owned) return render_template("shop.html", owned=owned.values(), awards=list(AWARDS.values()), v=v) @app.post("/buy/")