mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-15 12:27:05 +00:00
lat/long values now persistent on Entrances
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user