From 8fdfd1b8eab010c0e95c0753655730d36c2f895c Mon Sep 17 00:00:00 2001 From: n8fr8 Date: Thu, 7 May 2026 08:42:05 -0400 Subject: [PATCH 1/2] if the datetime field isn't there, don't try to set it --- app/static/time.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/static/time.js b/app/static/time.js index 38d3ef7..bc7abdc 100644 --- a/app/static/time.js +++ b/app/static/time.js @@ -1,7 +1,7 @@ document.addEventListener('DOMContentLoaded', () => { -var currentTime = new Date(); -const $myDatetimeField = document.querySelector('#butterbox_date') + const $myDatetimeField = document.querySelector('#butterbox_date'); + if (!$myDatetimeField) return; + const currentTime = new Date(); console.log(currentTime.toISOString().substring(0, 19)); $myDatetimeField.value = currentTime.toISOString().substring(0, 19) + 'Z'; - -}); \ No newline at end of file +}); From e85c3b1dc2de60f9950dc24afc5d57628e955baf Mon Sep 17 00:00:00 2001 From: n8fr8 Date: Thu, 7 May 2026 13:34:50 -0400 Subject: [PATCH 2/2] systemctl daemon-reload should be inside the module --- install_madmail.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/install_madmail.py b/install_madmail.py index 2fc3976..e3154cc 100644 --- a/install_madmail.py +++ b/install_madmail.py @@ -71,7 +71,6 @@ def run_madmail_installer(): child.sendline("y") child.expect(pexpect.EOF) - -daemon_reload = run(["sudo", "systemctl", "daemon-reload"], capture_output=True, text=True) -if daemon_reload.returncode != 0: - print(f"Issue running systemctl daemon_reload") \ No newline at end of file + daemon_reload = run(["sudo", "systemctl", "daemon-reload"], capture_output=True, text=True) + if daemon_reload.returncode != 0: + print(f"Issue running systemctl daemon_reload") \ No newline at end of file