Testeando error en geocoder.
This commit is contained in:
parent
bebfe12d74
commit
0248e75606
2 changed files with 2 additions and 6 deletions
|
|
@ -79,12 +79,8 @@ class CapturasInterface():
|
||||||
WHERE `precision` IS NULL
|
WHERE `precision` IS NULL
|
||||||
LIMIT 1
|
LIMIT 1
|
||||||
"""
|
"""
|
||||||
|
|
||||||
cursor_result = self.anunciosdb.query(query_statement, dictionary=True)
|
cursor_result = self.anunciosdb.query(query_statement, dictionary=True)
|
||||||
try:
|
return cursor_result.fetchone()
|
||||||
return cursor_result.fetchone()
|
|
||||||
except:
|
|
||||||
return None
|
|
||||||
|
|
||||||
def update_geo_data(self, referencia, fecha_captura, latitude, longitude, precision):
|
def update_geo_data(self, referencia, fecha_captura, latitude, longitude, precision):
|
||||||
query_statement = """
|
query_statement = """
|
||||||
|
|
|
||||||
|
|
@ -175,4 +175,4 @@ class GeocodingTask:
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
geocoder = Geocoder()
|
geocoder = Geocoder()
|
||||||
geocoder.start()
|
geocoder.start()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue