diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/models/caves.py | 11 | ||||
-rw-r--r-- | core/views/caves.py | 4 |
2 files changed, 11 insertions, 4 deletions
diff --git a/core/models/caves.py b/core/models/caves.py index 83b4507..8af9a76 100644 --- a/core/models/caves.py +++ b/core/models/caves.py @@ -712,7 +712,7 @@ def GetCaveLookup(): ("loveshack", "1626-2018-ad-03"), ("crushed-garlic", "1626-2018-ad-03"), - # Renaming cave ids which end in a letter NB targets must be LOWER CASE + # Renaming cave ids which end in a letter NB targets should be LOWER CASE for this code ("2002-XX", "1623-2002-fb-01"), ("2002-X09B", "1623-2002-xb09"), ("2007-neu", "1623-2007-neu-01"), @@ -720,7 +720,14 @@ def GetCaveLookup(): ("2023-BuzzardHole", "1626-2023-bz-01"), ("1626-2023-BuzzardHole", "1626-2023-bz-01"), ("1626-2023-buzzardhole","1626-2023-bz-01"), - + ("Rentner","1623-rnt-01"), + ("Blaubeer","1623-blb-01"), + ("Haldenlock","1623-hld-01"), + ("Juttahoehle","1623-jtt-01"), + ("Loutotihoehle","1626-loutoti-01"), + ("Casino","1626-casino-01"), + ("Upside-down","1626-upside-down-01"), + ] diff --git a/core/views/caves.py b/core/views/caves.py index 5a28101..24f61f7 100644 --- a/core/views/caves.py +++ b/core/views/caves.py @@ -408,7 +408,7 @@ def edit_cave(request, path="", slug=None): We basically ignore the <path> as the <slug> is of the format 1624-114 and contains the area code """ - #print(f"edit_cave(): {path=} {slug=}") + print(f"edit_cave(): {path=} {slug=}") message = "" if slug is not None: try: @@ -463,7 +463,7 @@ def edit_cave(request, path="", slug=None): try: read_cave(cave.filename, cave=cave) except Exception as e: - print(f"edit_cave(): EXCEPTION attempting to read_cave()\n{e}") + print(f"edit_cave(): EXCEPTION attempting to read_cave({cave.filename})\n{e}") raise form = CaveForm(instance=cave, initial={'cave_slug': cave.slug()}) |