From 94e92b0f74ddc130d4ab0bc9322d318efcab10af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?James=20Sigur=C3=B0arson?= Date: Fri, 12 Aug 2016 14:33:24 +0100 Subject: [PATCH] stage error --- routes/challenges.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/challenges.py b/routes/challenges.py index 9fd5391..1a76bd9 100644 --- a/routes/challenges.py +++ b/routes/challenges.py @@ -18,7 +18,7 @@ def index(): solved = challenge.get_solved(g.team) solves = challenge.get_solve_counts() categories = challenge.get_categories() - first_stage = {chall.alias: True for chall in challs[stages[0].id]} + first_stage = {chall.alias: True for chall in challs[stages[0].id]} if stages else None return render_template("challenges.html", stages=stages, first_stage=first_stage, challenges=challs, solved=solved, categories=categories, solves=solves)