Retoques menores en geocoder y capturer por problemas de tipos.
This commit is contained in:
parent
c40d39e558
commit
600ff889be
4 changed files with 88 additions and 75 deletions
|
|
@ -20,7 +20,18 @@ class Geocoder:
|
|||
else:
|
||||
continue
|
||||
|
||||
address = ad_data['calle'] + ', ' + ad_data['ciudad']
|
||||
try:
|
||||
address = ad_data['calle'] + ', ' + ad_data['ciudad']
|
||||
except TypeError:
|
||||
geo_data = {'latitude': None,
|
||||
'longitude': None,
|
||||
'precision': 'SIN RESULTADOS'}
|
||||
capturas_interface.update_geo_data(ad_data['referencia'],
|
||||
ad_data['fecha_captura'],
|
||||
geo_data['latitude'],
|
||||
geo_data['longitude'],
|
||||
geo_data['precision'])
|
||||
continue
|
||||
|
||||
if self.cache.address_in_cache(address):
|
||||
geo_data = self.cache.get_coordinates(address)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue