Browse Source

Merge branch 'master' of git.phyks.me:Phyks/flatisfy

Phyks (Lucas Verney) 4 years ago
parent
commit
d6bee1dcb0
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      flatisfy/filters/__init__.py

+ 1
- 1
flatisfy/filters/__init__.py View File

@@ -101,7 +101,7 @@ def refine_with_details_criteria(flats_list, constraint):
101 101
     for i, flat in enumerate(flats_list):
102 102
         # Check number of pictures
103 103
         has_enough_photos = tools.is_within_interval(
104
-            flat.get('photos', []),
104
+            len(flat.get('photos', [])),
105 105
             constraint['minimum_nb_photos'],
106 106
             None
107 107
         )