This commit is contained in:
parent
8082b739af
commit
6777c32588
|
@ -147,13 +147,14 @@ def place_name(lat, lon):
|
||||||
if('default' not in lookup_place_name):
|
if('default' not in lookup_place_name):
|
||||||
lookup_place_name['default'] = address[loc]
|
lookup_place_name['default'] = address[loc]
|
||||||
|
|
||||||
if('default' not in lookup_place_name):
|
|
||||||
lookup_place_name = lookup_place_name_default
|
|
||||||
|
|
||||||
if(lookup_place_name is not {}):
|
if(lookup_place_name is not {}):
|
||||||
db.add_location(lat, lon, lookup_place_name)
|
db.add_location(lat, lon, lookup_place_name)
|
||||||
# TODO: Maybe this should only be done on exit and not for every write.
|
# TODO: Maybe this should only be done on exit and not for every write.
|
||||||
db.update_location_db()
|
db.update_location_db()
|
||||||
|
|
||||||
|
if('default' not in lookup_place_name):
|
||||||
|
lookup_place_name = lookup_place_name_default
|
||||||
|
|
||||||
return lookup_place_name
|
return lookup_place_name
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue