This commit is contained in:
WhatDidYouExpect 2025-07-07 17:17:44 +02:00
parent 378aca4b0e
commit 6db0081fab
3 changed files with 14 additions and 13 deletions

View file

@ -26,16 +26,6 @@ def load_memory():
except FileNotFoundError:
pass
# If MEMORY_LOADED_FILE does not exist, load default data and mark as loaded
if not os.path.exists(MEMORY_LOADED_FILE):
try:
with open(DEFAULT_DATASET_FILE, "r") as f:
default_data = json.load(f)
data.extend(default_data)
except FileNotFoundError:
pass
with open(MEMORY_LOADED_FILE, "w") as f:
f.write("Data loaded")
return data
# Save memory data to MEMORY_FILE