Commit 52c33beb authored by Nane Kratzke's avatar Nane Kratzke
Browse files

Aktualisieren prime/

parent 45d42d3c
......@@ -15,7 +15,7 @@ def lookup(key):
if not os.getenv('REDIS'):
return None
value = redis.get(key)
value = int(redis.get(key))
if not value:"Redis lookup of key {key} failed. No data.")
return None
......@@ -29,7 +29,7 @@ def cache(key, value):
return None
redis.set(key, value)
return val
return value
except Exception as ex:
log.error(f"Redis write for {key} failed due to {ex}")
return None
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment