shorten slug to fit

This commit is contained in:
Philip Sargent 2022-07-06 11:10:50 +03:00
parent 0ea3ed1ef2
commit da4d7d6d5e

View File

@ -538,8 +538,8 @@ class LoadingSurvex():
# so we create a dummy one anyway. We should make logbook entry links optional in QMs in future and
# remove this hack.
qmyear = str(survexblock.date)[:4]
blockname = survexblock.name
logslug = f'DUM_{int(qmyear)}_{blockname}_{int(qm_no):03d}'
blockname = survexblock.name[:7]
logslug = f'D{int(qmyear)}_{blockname}_{int(qm_no):03d}'
if survexblock.survexfile.cave:
caveslug = survexblock.survexfile.cave.slug()
place = survexblock.survexfile.cave