Completely fix https://github.com/Phyks/Flatisfy/issues/10
This commit is contained in:
parent
7fd44b7e8f
commit
1d6233e5ca
@ -128,6 +128,15 @@ class WeboobProxy(object):
|
|||||||
postal_code
|
postal_code
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Remove "TOUTES COMMUNES" entry which are duplicates of the individual
|
||||||
|
# cities entries in Logicimmo module.
|
||||||
|
matching_cities = [
|
||||||
|
city
|
||||||
|
for city in matching_cities
|
||||||
|
if not (city.backend == 'logicimmo' and
|
||||||
|
city.name.startswith('TOUTES COMMUNES'))
|
||||||
|
]
|
||||||
|
|
||||||
# Then, build queries by grouping cities by at most 3
|
# Then, build queries by grouping cities by at most 3
|
||||||
for cities_batch in tools.batch(matching_cities, 3):
|
for cities_batch in tools.batch(matching_cities, 3):
|
||||||
query = Query()
|
query = Query()
|
||||||
|
Loading…
Reference in New Issue
Block a user