2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-16 05:37:14 +00:00

Edit entrance form explanation text

This commit is contained in:
2023-10-12 16:13:28 +03:00
parent 246fb29193
commit bf8d881770
2 changed files with 21 additions and 7 deletions

View File

@@ -83,7 +83,7 @@ def validate_entrance_stations(ent=None):
print(message)
def validate_ent(ent):
"""For each of the three tag strings in an Entrance object,
"""For each of the two station strings in an Entrance object,
validate each string as referring to a valid SurvexStation object.
But our list of created SurvexStation objects is created by taking a list of strings and using them
to select from lines in a .pos file - so this is unnecessarily indirect.
@@ -97,10 +97,10 @@ def validate_entrance_stations(ent=None):
cave = cavelist[0]
url = f"/{cave.url}"
elif len(cavelist) > 1:
cave = cavelist[-1]
cave = cavelist[-1] # set to last in list
url = f"/{cave.url}"
else:
print(f"BUGGER {ent} {ent.cavelist()}")
print(f"BUGGER bad cave '{cavelist}' on Entrance object {ent} ")
url="/caves"
for st, ent_type in {ent.other_station: "other", ent.tag_station: "tag"}.items():
if st == "":