diff --git a/app/routes.py b/app/routes.py index 0dfb009b35729c1d98206d63d66c6fafcabac6ce..cccbbbcf4f303c60cb1a2af2e55e2b74efd00220 100644 --- a/app/routes.py +++ b/app/routes.py @@ -181,12 +181,12 @@ def top10(): "ORDER BY {cat} DESC LIMIT 10".format(cat=category)) if len(raw_data) > 0: print(raw_data) - top10[category_names[category]] = { - "plot_filename": raw_data[0], + top10[category_names[category]] = [{ + "plot_filename": r[0], "meta": { - "highscore": raw_data[1] - }, - } + "highscore": r[1] + } + } for r in raw_data] return render_template('top10.html', top10=top10)