diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2024-07-23 16:18:09 +0200 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2024-07-23 16:18:09 +0200 |
commit | 957f78b1a38bc5f852d7817c76792d4ac7e45a6b (patch) | |
tree | 9492b165cd4dd3d567fa194ca7ef16e24f520116 /core/views/uploads.py | |
parent | ca103fde229f31a95ebbdd5b65283f1878cc4417 (diff) | |
download | troggle-957f78b1a38bc5f852d7817c76792d4ac7e45a6b.tar.gz troggle-957f78b1a38bc5f852d7817c76792d4ac7e45a6b.tar.bz2 troggle-957f78b1a38bc5f852d7817c76792d4ac7e45a6b.zip |
trying to debug dup lbe
Diffstat (limited to 'core/views/uploads.py')
-rw-r--r-- | core/views/uploads.py | 7 |
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 |