From 312abcbed71020bd6d975d6c97fb000cfb19a716 Mon Sep 17 00:00:00 2001 From: Snakes Date: Wed, 30 Nov 2022 15:44:01 -0500 Subject: [PATCH] offsitementions: use proper cache key in setter. --- files/helpers/offsitementions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/offsitementions.py b/files/helpers/offsitementions.py index c5004b0bdc..ca39ff80e8 100644 --- a/files/helpers/offsitementions.py +++ b/files/helpers/offsitementions.py @@ -85,7 +85,7 @@ def get_mentions(cache:Cache, queries:Iterable[str], reddit_notifs_users=False): }) try: if not reddit_notifs_users: - cache.set(CACHE_KEY, after + 1) + cache.set(const.REDDIT_NOTIFS_CACHE_KEY, after + 1) except: print("Failed to set cache value; there may be duplication of reddit notifications") return mentions