This commit is contained in:
Aevann1 2022-01-12 05:16:49 +02:00
parent f90e402ab0
commit 4bae627505
6 changed files with 31 additions and 6743 deletions

View file

@ -20,7 +20,13 @@ def privacy(v):
@app.get("/marseys")
@auth_required
def emojis(v):
return render_template("marseys.html", v=v)
with open("marsey_count.json", 'r') as file:
marsey_count = loads(file.read())
marsey_counted = []
for k, val in marseys.items():
marsey_counted.append((k, val, marsey_count[k]))
marsey_counted = sorted(marsey_counted, key=lambda x: x[2], reverse=True)
return render_template("marseys.html", v=v, marseys=marsey_counted)
@app.get("/terms")
@auth_required