mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-04-19 12:21:08 +01:00
bug fix
This commit is contained in:
@@ -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"),
|
||||
|
||||
|
||||
]
|
||||
|
||||
|
||||
@@ -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()})
|
||||
|
||||
Reference in New Issue
Block a user