From 1a5392bcbdb420d35c47336740324d43ae5c2b8a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 22 Jan 2022 22:04:12 +0200 Subject: [PATCH] ffsdcvxcvx --- files/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/__main__.py b/files/__main__.py index fc3b3fa20..1d072c9d7 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -116,7 +116,8 @@ def after_request(response): response.headers.add("X-Frame-Options", "deny") return response -with open("marseys.json", 'r') as f: cache.set("marseys", loads(f.read())) +if not cache.get("marseys"): + with open("marseys.json", 'r') as f: cache.set("marseys", loads(f.read())) from files.routes import *