From ccaeedb04b75e205110c1ae26aa9255d6a91607a Mon Sep 17 00:00:00 2001 From: John Hoffer Date: Tue, 30 Mar 2021 21:18:19 -0400 Subject: [PATCH] allow vis csv copies on autosave --- src/app.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app.py b/src/app.py index 4eb76ee..ca88334 100644 --- a/src/app.py +++ b/src/app.py @@ -889,13 +889,14 @@ def api_save(): # Persist old autosaves just in case if saved and 'autosave' in saved: data['autosave'] = saved['autosave'] - # Make a copy of the visualization csv files - # for use with save_exhibit_pyramid.py - copy_vis_csv_files(data['waypoints'], pathlib.Path(out_dat)) with open(G['out_dat'], 'w') as out_file: json.dump(data, out_file) + # Make a copy of the visualization csv files + # for use with save_exhibit_pyramid.py + copy_vis_csv_files(data['waypoints'], pathlib.Path(out_dat)) + return 'OK' def render_progress_callback(current, maximum, key='default'):