Browse Source

Revert "Bugfix"

This reverts commit e284a71a43.
Phyks (Lucas Verney) 8 months ago
parent
commit
ff927cbafa
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      flatisfy/fetch.py

+ 2
- 3
flatisfy/fetch.py View File

@@ -314,9 +314,8 @@ def fetch_flats(config):
314 314
                     backend=backend,
315 315
                     last_fetch=arrow.get(last_fetch_by_backends[backend]).date()
316 316
                 )
317
-            if last_fetch_in_db:
318
-                session.add(last_fetch_in_db)
319
-                session.commit()
317
+            session.add(last_fetch_in_db)
318
+            session.commit()
320 319
 
321 320
         housing_posts = housing_posts[: config["max_entries"]]
322 321
         LOGGER.info("Fetched %d flats.", len(housing_posts))