From c5f1c1574c252b4f3489576371a4600f975e1a2c Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 27 Oct 2023 18:51:48 +0300 Subject: [PATCH] fix emoji cache --- files/routes/asset_submissions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/asset_submissions.py b/files/routes/asset_submissions.py index cec10e1e2..e8489deaf 100644 --- a/files/routes/asset_submissions.py +++ b/files/routes/asset_submissions.py @@ -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")