Skip to content
Snippets Groups Projects
Commit 04c984a6 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Fix meta structure

parent 6c44b8df
No related branches found
No related tags found
No related merge requests found
...@@ -181,12 +181,12 @@ def top10(): ...@@ -181,12 +181,12 @@ def top10():
"ORDER BY {cat} DESC LIMIT 10".format(cat=category)) "ORDER BY {cat} DESC LIMIT 10".format(cat=category))
if len(raw_data) > 0: if len(raw_data) > 0:
print(raw_data) print(raw_data)
top10[category_names[category]] = { top10[category_names[category]] = [{
"plot_filename": raw_data[0], "plot_filename": r[0],
"meta": { "meta": {
"highscore": raw_data[1] "highscore": r[1]
}, }
} } for r in raw_data]
return render_template('top10.html', top10=top10) return render_template('top10.html', top10=top10)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment