diff --git a/bin/crawlers/Crawler.py b/bin/crawlers/Crawler.py index 8a4237f8..eb279674 100755 --- a/bin/crawlers/Crawler.py +++ b/bin/crawlers/Crawler.py @@ -58,7 +58,11 @@ class Crawler(AbstractModule): def refresh_lacus_status(self): try: + lacus_up = self.is_lacus_up self.is_lacus_up = crawlers.get_lacus().is_up + # refresh lacus + if not lacus_up and self.is_lacus_up + self.lacus = crawlers.get_lacus() except: self.is_lacus_up = False if not self.is_lacus_up: diff --git a/bin/lib/objects/abstract_daterange_object.py b/bin/lib/objects/abstract_daterange_object.py index 5613e5c0..b2b4c6f0 100755 --- a/bin/lib/objects/abstract_daterange_object.py +++ b/bin/lib/objects/abstract_daterange_object.py @@ -115,7 +115,7 @@ class AbstractDaterangeObject(AbstractObject, ABC): # if hash already in item def _add(self, date, item_id): if not self.exists(): - self._add_create(date) + self._add_create() self.set_first_seen(date) self.set_last_seen(date) else: