Skip to content

Commit

Permalink
shoudl work
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Reynolds committed Aug 20, 2024
1 parent 11bffab commit 02c6425
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 02c6425

Please sign in to comment.