2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-21 23:01:52 +00:00

trying to debug dup lbe

This commit is contained in:
Philip Sargent 2024-07-23 16:18:09 +02:00
parent ca103fde22
commit 957f78b1a3

View File

@ -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