Browse Source

Remove misleading log

master
Gautier P 3 years ago
parent
commit
36e98bc5b3
  1. 2
      flatisfy/config.py
  2. 9
      flatisfy/filters/images.py

2
flatisfy/config.py

@ -38,7 +38,7 @@ DEFAULT_CONFIG = { @@ -38,7 +38,7 @@ DEFAULT_CONFIG = {
"bedrooms": (None, None), # (min, max)
"minimum_nb_photos": None, # min number of photos
"description_should_contain": [], # list of terms
"description_should_not_contain": [ # list of terms
"description_should_not_contain": [
"vendu",
"Vendu",
"VENDU",

9
flatisfy/filters/images.py

@ -25,14 +25,7 @@ def download_images(flats_list, config): @@ -25,14 +25,7 @@ def download_images(flats_list, config):
photo_cache = ImageCache(
storage_dir=os.path.join(config["data_directory"], "images")
)
flats_list_length = len(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 flat in flats_list:
for photo in flat["photos"]:
# Download photo
image = photo_cache.get(photo["url"])

Loading…
Cancel
Save