summaryrefslogtreecommitdiffstats
path: root/core/views/survex.py
diff options
context:
space:
mode:
Diffstat (limited to 'core/views/survex.py')
-rw-r--r--core/views/survex.py7
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"