Testeando error en geocoder.

This commit is contained in:
pablomartincalvo 2018-10-23 23:18:12 +02:00
parent 06e1f78f40
commit a3a2165f43
4 changed files with 172 additions and 138 deletions

View file

@ -60,11 +60,11 @@ class CapturasInterface():
def not_geocoded_captura_exists(self):
query_statement = """
SELECT COUNT(referencia)
SELECT COUNT(referencia) as cantidad
FROM anuncios.capturas
WHERE `precision` IS NULL"""
cursor_result = self.anunciosdb.query(query_statement, dictionary=True)
cursor_result = self.anunciosdb.query(query_statement)
result = cursor_result.fetchone()[0]
return result > 0