diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-09-27 00:38:07 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-09-27 00:38:07 +0300 |
commit | 0d5297f08c9a629176bbeb9839e8cc9bf80ef3b2 (patch) | |
tree | 3e571183ee066b44a702f1cbc442cad848e72865 /parsers/caves.py | |
parent | 9aad95bfd0476dbe7dd2609be2559e53a4fef9e8 (diff) | |
download | troggle-0d5297f08c9a629176bbeb9839e8cc9bf80ef3b2.tar.gz troggle-0d5297f08c9a629176bbeb9839e8cc9bf80ef3b2.tar.bz2 troggle-0d5297f08c9a629176bbeb9839e8cc9bf80ef3b2.zip |
lat/long values now persistent on Entrances
Diffstat (limited to 'parsers/caves.py')
-rw-r--r-- | parsers/caves.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/parsers/caves.py b/parsers/caves.py index b7d2a20..34f7143 100644 --- a/parsers/caves.py +++ b/parsers/caves.py @@ -474,6 +474,8 @@ def read_entrance(filename, ent=None): print(message) lastvisit = getXML(entrancecontents, "lastvisit", maxItems=1, minItems=0, context=f"/cave/{slug}/edit/") + lat_wgs84 = getXML(entrancecontents, "lat_wgs84", maxItems=1, minItems=0, context=f"/cave/{slug}/edit/") + long_wgs84 = getXML(entrancecontents, "long_wgs84", maxItems=1, minItems=0, context=f"/cave/{slug}/edit/") alt = getXMLmax1("alt") approach = getXMLmax1("approach") @@ -507,6 +509,8 @@ def read_entrance(filename, ent=None): ent.approach=approach[0] ent.bearings=bearings[0] ent.easting=easting[0] + ent.lat_wgs84=lat_wgs84[0] + ent.long_wgs84=long_wgs84[0] ent.entrance_description=entrance_description[0] ent.exact_station=exact_station[0] ent.explorers=explorers[0] |