From 02c6425984aad26bdff4d67f6281de3eefbcdf48 Mon Sep 17 00:00:00 2001 From: Kevin Reynolds Date: Tue, 20 Aug 2024 17:20:07 -0400 Subject: [PATCH] shoudl work --- base/app/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/app/app.py b/base/app/app.py index 4bf09ad..471a97d 100644 --- a/base/app/app.py +++ b/base/app/app.py @@ -21,8 +21,8 @@ def run_flask(app): def save_state(file, state): os.makedirs(os.path.dirname(state_base + file), exist_ok=True) - with open(state_base+ file, 'w') as f: - json.dump(state, f) + with open(state_base + file, 'w') as f: + f.write(state) def load_state(file): try: