2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-02-08 12:51:11 +00:00

fields in cave.html file

This commit is contained in:
2025-01-31 02:00:06 +00:00
parent 4a0496b3b4
commit 49ea30cf06
2 changed files with 3 additions and 0 deletions

View File

@@ -69,6 +69,8 @@ def kataster(request, slug):
try:
# this is a python generator idiom.
# see https://realpython.com/introduction-to-python-generators/
# THIS IS VERY SILLY. We have this in the databse fom when this file was parsed. Don't read it again !
with open(settings.CAVEDESCRIPTIONS / cavefilename, 'r') as f:
for line in f:
if match := re.search(r'<entranceslug>(.*?)</entranceslug>', line):