Sorting gamelist alphabetically #17

Merged
odecif merged 1 commits from sort-gamelist-alphabetically into master 2022-10-31 09:39:41 +01:00
Showing only changes of commit d54da57929 - Show all commits

View File

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