Revert "Bugfix"

This reverts commit e284a71a43.
Este commit está contenido en:
Lucas Verney 2021-04-28 19:54:09 +02:00
padre 699cec5329
commit ff927cbafa
Se han modificado 1 ficheros con 2 adiciones y 3 borrados

Ver fichero

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