offsitementions: use proper cache key in setter.

pull/37/head
Snakes 2022-11-30 15:44:01 -05:00
parent 5e47c70fdb
commit 312abcbed7
Signed by: Snakes
GPG Key ID: E745A82778055C7E
1 changed files with 1 additions and 1 deletions

View File

@ -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