diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2024-12-29 15:49:07 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2024-12-29 15:49:07 +0000 |
commit | ace23257731c9a35c48bb56ff59c24cfccdc7029 (patch) | |
tree | fe5c642f8cc4937d11df63acc84aaeac72f92e8c /core/views/survex.py | |
parent | 6d2484376a5816387fedfb03eb83c42bcb81d6a1 (diff) | |
download | troggle-ace23257731c9a35c48bb56ff59c24cfccdc7029.tar.gz troggle-ace23257731c9a35c48bb56ff59c24cfccdc7029.tar.bz2 troggle-ace23257731c9a35c48bb56ff59c24cfccdc7029.zip |
Add commit msg when on a devserver
Diffstat (limited to 'core/views/survex.py')
-rw-r--r-- | core/views/survex.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/core/views/survex.py b/core/views/survex.py index 5707720..83f5af5 100644 --- a/core/views/survex.py +++ b/core/views/survex.py @@ -2,7 +2,6 @@ import datetime import difflib import os import re -import socket from collections import namedtuple from pathlib import Path @@ -229,11 +228,7 @@ class SvxForm(forms.Form): fout.write("\n") fout.close() - 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()}' " - print(f"Committing file which has been saved {editor=}") + comment = f"Online survex edit: {self.data['filename']}.svx" add_commit(fname, comment, editor) msg = f"SAVED and committed to git (if there were differences)\nEdited by:{editor}" |