Browse Source

Remove misleading log

Gautier P 10 months ago
parent
commit
36e98bc5b3
2 changed files with 2 additions and 9 deletions
  1. 1
    1
      flatisfy/config.py
  2. 1
    8
      flatisfy/filters/images.py

+ 1
- 1
flatisfy/config.py View File

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

+ 1
- 8
flatisfy/filters/images.py View File

@@ -25,14 +25,7 @@ def download_images(flats_list, config):
25 25
     photo_cache = ImageCache(
26 26
         storage_dir=os.path.join(config["data_directory"], "images")
27 27
     )
28
-    flats_list_length = len(flats_list)
29
-    for i, flat in enumerate(flats_list):
30
-        LOGGER.info(
31
-            "Downloading photos for flat %d/%d: %s.",
32
-            i + 1,
33
-            flats_list_length,
34
-            flat["id"],
35
-        )
28
+    for flat in flats_list:
36 29
         for photo in flat["photos"]:
37 30
             # Download photo
38 31
             image = photo_cache.get(photo["url"])