summaryrefslogtreecommitdiffstats
path: root/core/models/caves.py
diff options
context:
space:
mode:
Diffstat (limited to 'core/models/caves.py')
-rw-r--r--core/models/caves.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/core/models/caves.py b/core/models/caves.py
index bf495bc..a8dc3ec 100644
--- a/core/models/caves.py
+++ b/core/models/caves.py
@@ -515,7 +515,7 @@ def GetCaveLookup():
checkcaveid(cave, unoffn)
if cave.filename:
- # this is the slug - usually.. but usually done as as f'{cave.area}-{cave.kataster_number}'
+ # this is the slug - or should be
fn = cave.filename.replace(".html", "").lower()
checkcaveid(cave, fn)
@@ -711,9 +711,15 @@ def GetCaveLookup():
("hc", "2018-dm-07"),
("loveshack", "1626-2018-ad-03"),
("crushed-garlic", "1626-2018-ad-03"),
- ("BuzzardHole", "1626-2023-buzzardhole"),
- ("2023-BuzzardHole", "1626-2023-buzzardhole"),
- ("1626-2023-BuzzardHole", "1626-2023-buzzardhole"),
+
+ # Renaming cave ids which end in a letter
+ ("1623-2002-XX", "1623-2002-FB-01"),
+ ("1623-2002-X09B", "1623-2002-XB09"),
+ ("1623-2007-neu", "1623-2007-NEU-01"),
+ ("BuzzardHole", "1626-2023-BZ-01"),
+ ("2023-BuzzardHole", "1626-2023-BZ-01"),
+ ("1626-2023-BuzzardHole", "1626-2023-BZ-01"),
+ ("1626-2023-buzzardhole","1626-2023-BZ-01"),
]