From ace23257731c9a35c48bb56ff59c24cfccdc7029 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sun, 29 Dec 2024 15:49:07 +0000 Subject: Add commit msg when on a devserver --- core/views/survex.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'core/views/survex.py') 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}" -- cgit v1.2.3