summaryrefslogtreecommitdiffstats
path: root/core/views
diff options
context:
space:
mode:
Diffstat (limited to 'core/views')
-rw-r--r--core/views/uploads.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/views/uploads.py b/core/views/uploads.py
index 86b5f6c..6a45e08 100644
--- a/core/views/uploads.py
+++ b/core/views/uploads.py
@@ -335,6 +335,13 @@ def logbookedit(request, year=None, slug=None):
else:
authorflag = True
print(f"! Unrecognised author: {author}")
+
+ # if somehow we get a slug set to just '2024', not eg '2020-08-10b'
+ # This is a hack, why can we not reproduce this bug on the dev system?
+ if len(slug) < 7:
+ slug = ""
+ if prev_slug < 7:
+ prev_slug = ""
if not prev_slug and not slug:
# Creating a new logbook entry with all the gubbins