diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-03-23 01:17:38 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-03-23 01:17:38 +0000 |
commit | 562ef48f190d0f5d8f39782aefe8d3abb71932d7 (patch) | |
tree | 9998bf3eab00030c273662cc4d85f75f88a00c03 /core/views | |
parent | 70d6d9eb7700a576514e7be6d75ed9432ecae049 (diff) | |
download | troggle-562ef48f190d0f5d8f39782aefe8d3abb71932d7.tar.gz troggle-562ef48f190d0f5d8f39782aefe8d3abb71932d7.tar.bz2 troggle-562ef48f190d0f5d8f39782aefe8d3abb71932d7.zip |
re-parsing survex file when editing
Diffstat (limited to 'core/views')
-rw-r--r-- | core/views/survex.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/core/views/survex.py b/core/views/survex.py index c80c76d..57a8d1a 100644 --- a/core/views/survex.py +++ b/core/views/survex.py @@ -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") |