2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-16 06:57:12 +00:00

re-parsing survex file when editing

This commit is contained in:
2023-03-23 01:17:38 +00:00
parent 70d6d9eb77
commit 562ef48f19
3 changed files with 71 additions and 76 deletions

View File

@@ -223,10 +223,12 @@ class SvxForm(forms.Form):
comment = f"Online survex edit: {self.data['filename']}.svx on dev machine '{socket.gethostname()}' "
only_commit(fname, comment)
msg = "SAVED and committed to git (if there were differences)"
# should only call this is something changed
parse_one_file(self.data["filename"])
return "SAVED and committed to git (if there were differences)"
if parse_one_file(self.data["filename"]):
return msg
else:
return msg + "\nBUT PARSING failed. Do a completely new databaseReset."
def Process(self):
print(">>>>....\n....Processing\n")