diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-10-12 16:13:28 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-10-12 16:13:28 +0300 |
commit | bf8d8817709c94046681e070c6d5c75a99f05057 (patch) | |
tree | eccd250ba91ed1a698722f66dce4a6c37a554444 /parsers/locations.py | |
parent | 246fb29193a58c3711db9258f60d0bdd037aad71 (diff) | |
download | troggle-bf8d8817709c94046681e070c6d5c75a99f05057.tar.gz troggle-bf8d8817709c94046681e070c6d5c75a99f05057.tar.bz2 troggle-bf8d8817709c94046681e070c6d5c75a99f05057.zip |
Edit entrance form explanation text
Diffstat (limited to 'parsers/locations.py')
-rw-r--r-- | parsers/locations.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/parsers/locations.py b/parsers/locations.py index 568e79b..4c23b4c 100644 --- a/parsers/locations.py +++ b/parsers/locations.py @@ -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 == "": |