From 6b1962707d723a0d10c929b92fba9cd1d65da15d Mon Sep 17 00:00:00 2001 From: Taka Date: Sun, 28 Jul 2019 06:02:22 +0000 Subject: [PATCH] Default to overwriting the source .vsav file after updating it. --- vasl_templates/webapp/vassal.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vasl_templates/webapp/vassal.py b/vasl_templates/webapp/vassal.py index 881b0ed..bc371f3 100644 --- a/vasl_templates/webapp/vassal.py +++ b/vasl_templates/webapp/vassal.py @@ -91,10 +91,9 @@ def update_vsav(): #pylint: disable=too-many-statements _logger.debug( "Updated the VSAV file OK: elapsed=%.3fs", time.time()-start_time ) # NOTE: We adjust the recommended save filename to encourage users to not overwrite the original file :-/ vsav_filename = os.path.split( vsav_filename )[1] - fname, extn = os.path.splitext( vsav_filename ) return jsonify( { "vsav_data": base64.b64encode(vsav_data).decode( "utf-8" ), - "filename": fname+" (updated)" + extn, + "filename": vsav_filename, "report": { "was_modified": report["was_modified"], "labels_created": len(report["created"]),