fix emoji cache

master
Aevann 2023-10-27 18:51:48 +03:00
parent 32d0b97f6e
commit c5f1c1574c
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ def approve_emoji(v, name):
cache.delete("emojis_False")
cache.delete(f"emoji_list_{emoji.kind}_False")
cache.set("emojis_num", g.db.query(Emoji).count())
cache.set("emojis_num", g.db.query(Emoji).filter_by(submitter_id=None).count())
purge_files_in_cloudflare_cache(f"{SITE_FULL_IMAGES}/e/{emoji.name}/webp")