data_form: add clear message regarding data changes
This commit is contained in:
parent
52d98488f9
commit
464c74866a
1 changed files with 2 additions and 1 deletions
|
@ -56,10 +56,11 @@ def main(*_args):
|
||||||
if app.data_has_changed():
|
if app.data_has_changed():
|
||||||
out_data = app.get_data_from_form()
|
out_data = app.get_data_from_form()
|
||||||
outfile_name = app.get_filename()
|
outfile_name = app.get_filename()
|
||||||
|
print(f"Writing changed Member Data to {outfile_name}")
|
||||||
with open(outfile_name, 'w') as outfile:
|
with open(outfile_name, 'w') as outfile:
|
||||||
json.dump(out_data, outfile, sort_keys=True, indent=4)
|
json.dump(out_data, outfile, sort_keys=True, indent=4)
|
||||||
else:
|
else:
|
||||||
print("Nothing has changed")
|
print("Nothing has changed, skipping writing file")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
Loading…
Reference in a new issue