Browse Source

Crop to max_entries at most

master
Gautier P 2 years ago
parent
commit
395a8ba72b
  1. 1
      flatisfy/fetch.py

1
flatisfy/fetch.py

@ -275,6 +275,7 @@ def fetch_flats(config): @@ -275,6 +275,7 @@ def fetch_flats(config):
webOOB_proxy.query(query, config["max_entries"],
config["store_personal_data"])
)
housing_posts = housing_posts[:config["max_entries"]]
LOGGER.info("Fetched %d flats.", len(housing_posts))
constraint_flats_list = [json.loads(flat) for flat in housing_posts]

Loading…
Cancel
Save