remotes/1693045480750635534/spooky-22
Aevann1 2021-09-05 23:00:28 +02:00
parent 4786d603a4
commit 1d55b4eced
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ def post_embed(id, v):
@app.template_filter("favorite_emojis")
def favorite_emojis(x):
str = ""
emojis = sorted(x.items(), key=lambda x: x[1], reverse=True)
emojis = sorted(x.items(), key=lambda x: x[1], reverse=True)[:25]
for k, v in emojis:
str += f'<button class="btn m-1 px-0" onclick="getEmoji(\'{k}\', \'@form@\')" style="background: None!important; width:60px; overflow: hidden; border: none;" data-toggle="tooltip" title=":{k}:" delay:="0"><img loading="lazy" width=50 src="/assets/images/emojis/{k}.gif" alt="{k}-emoji"/></button>'
return str