Remove misleading log

This commit is contained in:
Gautier P 2021-01-26 14:43:15 +01:00
parent 713912cfbc
commit 36e98bc5b3
2 changed files with 2 additions and 9 deletions

View File

@ -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",

View File

@ -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"])