increment_cache_key should start with 1, obviously

This commit is contained in:
Laura Klünder 2018-12-25 21:35:03 +01:00
parent 739dbf80d5
commit fc1a1bf586

View file

@ -6,7 +6,7 @@ def increment_cache_key(cache_key):
try:
cache.incr(cache_key)
except ValueError:
cache.set(cache_key, 0, None)
cache.set(cache_key, 1, None)
def stats_snapshot(reset=True):