diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2022-08-16 20:02:28 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2022-08-16 20:02:28 +0300 |
commit | 41c68aef26437e865f356ab13f4715c5da490764 (patch) | |
tree | 8e8940cd4b3f4b5e2c2cca1310f94018159754ee /core/views/survex.py | |
parent | e94dc6eb6f06eaffba541d660d9d4e4d85c37cd6 (diff) | |
download | troggle-41c68aef26437e865f356ab13f4715c5da490764.tar.gz troggle-41c68aef26437e865f356ab13f4715c5da490764.tar.bz2 troggle-41c68aef26437e865f356ab13f4715c5da490764.zip |
detecting empty wallets where we only have JSON and no files
Diffstat (limited to 'core/views/survex.py')
-rw-r--r-- | core/views/survex.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/views/survex.py b/core/views/survex.py index c07ce2d..610ee47 100644 --- a/core/views/survex.py +++ b/core/views/survex.py @@ -3,6 +3,7 @@ import os import datetime import difflib from pathlib import Path +import socket from django import forms from django.http import HttpResponseRedirect, HttpResponse, Http404 @@ -165,7 +166,11 @@ class SvxForm(forms.Form): res = fout.write("\n") fout.close() - only_commit(fname, f"Online survex edit: {self.data['filename']}.svx") + if socket.gethostname() == "expo": + comment = f"Online survex edit: {self.data['filename']}.svx" + else: + comment = f"Online survex edit: {self.data['filename']}.svx on dev machine '{socket.gethostname()}' " + only_commit(fname, comment) return "SAVED and committed to git" |