Sorting gamelist alphabetically

Fixes #13
This commit is contained in:
odecif 2022-10-31 09:38:46 +01:00
parent 1bf3c55e65
commit d54da57929

View File

@ -24,6 +24,9 @@ def gamelist(lang_code):
glist = json.loads((requests.get( glist = json.loads((requests.get(
host_endpoint + '/gamelist').content).decode()) host_endpoint + '/gamelist').content).decode())
# Sorting list alphabetically
glist = sorted(glist, key=lambda d: d['game']['title'])
return render_template('gamelist.html', gamelist=glist, return render_template('gamelist.html', gamelist=glist,
**languages[lang_code], lang_code=lang_code) **languages[lang_code], lang_code=lang_code)