mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-22 07:11:52 +00:00
debug comment
This commit is contained in:
parent
2cb665e141
commit
b907dcc993
@ -640,8 +640,10 @@ def read_cave(filename, mvf=None, cave=None):
|
|||||||
"""
|
"""
|
||||||
c = cave
|
c = cave
|
||||||
for e in entrances:
|
for e in entrances:
|
||||||
|
eslugs = getXML(e, "entranceslug", maxItems=1, context=context)
|
||||||
eslug = getXML(e, "entranceslug", maxItems=1, context=context)[0]
|
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')):
|
# if eslug.endswith(('a','b','c','d','e','f')):
|
||||||
# print(f"! Entrance {eslug}")
|
# print(f"! Entrance {eslug}")
|
||||||
# if eslug.endswith('a b'):
|
# 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.
|
# 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)
|
entrances = getXML(cavecontents, "entrance", context=context)
|
||||||
do_entrances()
|
#do_entrances()
|
||||||
# print(f"- {entrances_xslug=}")
|
|
||||||
if not entrances or len(entrances) < 1:
|
if not entrances or len(entrances) < 1:
|
||||||
# missing entrance link in cave_data/1623-* .html file
|
# missing entrance link in cave_data/1623-* .html file
|
||||||
set_dummy_entrance(slug[5:], slug, cave, msg="DUMMY: no entrances")
|
set_dummy_entrance(slug[5:], slug, cave, msg="DUMMY: no entrances")
|
||||||
|
Loading…
Reference in New Issue
Block a user