From ff927cbafa86d0cf871ea8af96fbf3bb279f4efe Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Wed, 28 Apr 2021 19:54:09 +0200 Subject: [PATCH] Revert "Bugfix" This reverts commit e284a71a43e9a47ff9b6ad52850c511e4317c393. --- flatisfy/fetch.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/flatisfy/fetch.py b/flatisfy/fetch.py index a13ea85..5ffa089 100644 --- a/flatisfy/fetch.py +++ b/flatisfy/fetch.py @@ -314,9 +314,8 @@ def fetch_flats(config): backend=backend, last_fetch=arrow.get(last_fetch_by_backends[backend]).date() ) - if last_fetch_in_db: - session.add(last_fetch_in_db) - session.commit() + session.add(last_fetch_in_db) + session.commit() housing_posts = housing_posts[: config["max_entries"]] LOGGER.info("Fetched %d flats.", len(housing_posts))