offsitementions: use proper cache key in setter.
parent
5e47c70fdb
commit
312abcbed7
|
@ -85,7 +85,7 @@ def get_mentions(cache:Cache, queries:Iterable[str], reddit_notifs_users=False):
|
||||||
})
|
})
|
||||||
try:
|
try:
|
||||||
if not reddit_notifs_users:
|
if not reddit_notifs_users:
|
||||||
cache.set(CACHE_KEY, after + 1)
|
cache.set(const.REDDIT_NOTIFS_CACHE_KEY, after + 1)
|
||||||
except:
|
except:
|
||||||
print("Failed to set cache value; there may be duplication of reddit notifications")
|
print("Failed to set cache value; there may be duplication of reddit notifications")
|
||||||
return mentions
|
return mentions
|
||||||
|
|
Loading…
Reference in New Issue