summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2024-07-02 02:18:09 +0300
committerPhilip Sargent <philip.sargent@gmail.com>2024-07-02 02:18:09 +0300
commite432098f6a0e28a146cf32cd2ef1737d42329b7f (patch)
tree3b7c5e3cd81e514417daee403e5c7216a981932a /core
parent8e1cf1021d8b398c4c59fff7c20719a53a72c3ac (diff)
downloadtroggle-e432098f6a0e28a146cf32cd2ef1737d42329b7f.tar.gz
troggle-e432098f6a0e28a146cf32cd2ef1737d42329b7f.tar.bz2
troggle-e432098f6a0e28a146cf32cd2ef1737d42329b7f.zip
renaming aliases
Diffstat (limited to 'core')
-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"),
]