Testeando error en geocoder.
This commit is contained in:
parent
06e1f78f40
commit
a3a2165f43
4 changed files with 172 additions and 138 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue