From 96b2c6c9ed21bca93aae6433f454206849c117b5 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Wed, 24 Aug 2022 14:15:40 +0300 Subject: [PATCH] fix url for cave edit page in error msg --- parsers/caves.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsers/caves.py b/parsers/caves.py index 9d95f32..50882a3 100644 --- a/parsers/caves.py +++ b/parsers/caves.py @@ -383,7 +383,7 @@ def readcave(filename): if survex_file[0]: if not (Path(SURVEX_DATA) / survex_file[0]).is_file(): message = f' ! {slug:12} survex filename does not exist :LOSER:"{survex_file[0]}" in "{filename}"' - DataIssue.objects.create(parser='caves', message=message, url=f'/{slug}_cave_edit/') + DataIssue.objects.create(parser='caves', message=message, url=f'/{slug[0:4]}/{slug}_cave_edit/') print(message)