data_form: add clear message regarding data changes

This commit is contained in:
David Kilias 2020-03-14 15:16:53 +01:00
parent 52d98488f9
commit 464c74866a

View file

@ -56,10 +56,11 @@ def main(*_args):
if app.data_has_changed():
out_data = app.get_data_from_form()
outfile_name = app.get_filename()
print(f"Writing changed Member Data to {outfile_name}")
with open(outfile_name, 'w') as outfile:
json.dump(out_data, outfile, sort_keys=True, indent=4)
else:
print("Nothing has changed")
print("Nothing has changed, skipping writing file")
if __name__ == "__main__":