mirror of
https://github.com/josejuanmartinez/libreCatastro.git
synced 2024-07-06 15:22:28 +02:00
Fixes check if address is present in ES
This commit is contained in:
parent
4c252e991d
commit
89e4f57373
@ -71,9 +71,9 @@ class ParserHTML(Parser):
|
||||
if tv == DotMap() or nv == DotMap():
|
||||
continue
|
||||
|
||||
if ElasticSearchUtils.check_if_address_present("{} {} {}".format(tv, address, nv), prov_name, city_name):
|
||||
logger.debug("Skipping {} {} {} {} {} because it's been already scrapped.".format(tv, address, nv,
|
||||
prov_name, city_name))
|
||||
if ElasticSearchUtils.check_if_address_present("{} {}".format(tv, nv), prov_name, city_name):
|
||||
logger.debug("Skipping {} {} {} {} because it's been already scrapped.".format(tv, nv,
|
||||
prov_name, city_name))
|
||||
continue
|
||||
|
||||
num_scrapping_fails = 10
|
||||
|
@ -136,9 +136,9 @@ class ParserXML(Parser):
|
||||
if tv == DotMap() or nv == DotMap():
|
||||
continue
|
||||
|
||||
if ElasticSearchUtils.check_if_address_present("{} {} {}".format(tv, address, nv), prov_name, city_name):
|
||||
logger.debug("Skipping {} {} {} {} {} because it's been already scrapped.".format(tv, address, nv,
|
||||
prov_name, city_name))
|
||||
if ElasticSearchUtils.check_if_address_present("{} {}".format(tv, nv), prov_name, city_name):
|
||||
logger.debug("Skipping {} {} {} {} because it's been already scrapped.".format(tv, nv,
|
||||
prov_name, city_name))
|
||||
continue
|
||||
|
||||
num_scrapping_fails = 10
|
||||
|
Loading…
Reference in New Issue
Block a user