master
Aevann1 2021-09-05 21:48:48 +02:00
parent 2af6c69661
commit bfd38bfff2
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ def post_embed(id, v):
return render_template("submission_listing.html", listing=[p], v=v)
@app.template_filter("favorite_emojis")
def favorite_emojis():
def favorite_emojis('v'):
str = ""
emojis = session["favorite_emojis"]
emojis = sorted(emojis.items(), key=lambda x: x[1], reverse=True)

View File

@ -45,7 +45,7 @@
<div class="tab-content">
<div class="tab-pane fade show active" id="emoji-tab-favorite">
<div class="d-flex flex-wrap py-3 pl-2" id="EMOJIS_favorite">
{{favorite_emojis}}
{{'v' | favorite_emojis}}
</div>
</div>
<div class="tab-pane fade" id="emoji-tab-marsey">