create data folder on startup

This commit is contained in:
Mathias DUPEUX 2025-04-17 23:06:39 +02:00
parent 5021be2982
commit ea3c737c04

View file

@ -21,6 +21,8 @@ def make_resp(data=''):
index = json.load(open("index.json", "r", encoding="utf-8"))
os.makedirs("data", exist_ok=True)
def save_index():
with open("index.json", "w+") as f:
json.dump(index, f, indent=4)