remotes/1693045480750635534/spooky-22
Aevann1 2022-01-21 14:24:27 +02:00
parent 2888dbfbb1
commit fc467d9d72
1 changed files with 3 additions and 1 deletions

View File

@ -109,6 +109,8 @@ def after_request(response):
response.headers.add("X-Frame-Options", "deny")
return response
with open("marsey_count.json", 'r') as f: cache.set("marsey_count", loads(f.read()))
if cache.get("marsey_count") == None:
with open("marsey_count.json", 'r') as f:
cache.set("marsey_count", loads(f.read()))
from files.routes import *