2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-25 08:41:51 +00:00

debug comment

This commit is contained in:
Philip Sargent 2024-07-15 12:42:46 +02:00
parent 2cb665e141
commit b907dcc993

View File

@ -640,8 +640,10 @@ def read_cave(filename, mvf=None, cave=None):
"""
c = cave
for e in entrances:
eslug = getXML(e, "entranceslug", maxItems=1, context=context)[0]
eslugs = getXML(e, "entranceslug", maxItems=1, context=context)
if len(eslugs) < 1:
print(f"TYPO IN cave_data file <entrance> tag contents\n <entrance> contents: {e}\n {eslugs=}")
eslug = eslugs[0]
# if eslug.endswith(('a','b','c','d','e','f')):
# print(f"! Entrance {eslug}")
# if eslug.endswith('a b'):
@ -885,8 +887,7 @@ def read_cave(filename, mvf=None, cave=None):
# Thsi whole way of doing entrances can be replaced by simply knowing the entrance_data filename what the cave is. to do.
entrances = getXML(cavecontents, "entrance", context=context)
do_entrances()
# print(f"- {entrances_xslug=}")
#do_entrances()
if not entrances or len(entrances) < 1:
# missing entrance link in cave_data/1623-* .html file
set_dummy_entrance(slug[5:], slug, cave, msg="DUMMY: no entrances")