Remove misleading log
This commit is contained in:
parent
713912cfbc
commit
36e98bc5b3
@ -38,7 +38,7 @@ DEFAULT_CONFIG = {
|
|||||||
"bedrooms": (None, None), # (min, max)
|
"bedrooms": (None, None), # (min, max)
|
||||||
"minimum_nb_photos": None, # min number of photos
|
"minimum_nb_photos": None, # min number of photos
|
||||||
"description_should_contain": [], # list of terms
|
"description_should_contain": [], # list of terms
|
||||||
"description_should_not_contain": [ # list of terms
|
"description_should_not_contain": [
|
||||||
"vendu",
|
"vendu",
|
||||||
"Vendu",
|
"Vendu",
|
||||||
"VENDU",
|
"VENDU",
|
||||||
|
@ -25,14 +25,7 @@ def download_images(flats_list, config):
|
|||||||
photo_cache = ImageCache(
|
photo_cache = ImageCache(
|
||||||
storage_dir=os.path.join(config["data_directory"], "images")
|
storage_dir=os.path.join(config["data_directory"], "images")
|
||||||
)
|
)
|
||||||
flats_list_length = len(flats_list)
|
for flat in flats_list:
|
||||||
for i, flat in enumerate(flats_list):
|
|
||||||
LOGGER.info(
|
|
||||||
"Downloading photos for flat %d/%d: %s.",
|
|
||||||
i + 1,
|
|
||||||
flats_list_length,
|
|
||||||
flat["id"],
|
|
||||||
)
|
|
||||||
for photo in flat["photos"]:
|
for photo in flat["photos"]:
|
||||||
# Download photo
|
# Download photo
|
||||||
image = photo_cache.get(photo["url"])
|
image = photo_cache.get(photo["url"])
|
||||||
|
Loading…
Reference in New Issue
Block a user