Skip to content

Commit

Permalink
allow vis csv copies on autosave
Browse files Browse the repository at this point in the history
  • Loading branch information
thejohnhoffer committed Mar 31, 2021
1 parent 2186502 commit ccaeedb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'):
Expand Down

0 comments on commit ccaeedb

Please sign in to comment.