mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-23 06:37:15 +00:00
fix: [cve + crawler] fix crawler lacus client refresh + typo
This commit is contained in:
parent
427a6fbfa1
commit
d2fdc6107e
2 changed files with 5 additions and 1 deletions
|
@ -58,7 +58,11 @@ class Crawler(AbstractModule):
|
||||||
|
|
||||||
def refresh_lacus_status(self):
|
def refresh_lacus_status(self):
|
||||||
try:
|
try:
|
||||||
|
lacus_up = self.is_lacus_up
|
||||||
self.is_lacus_up = crawlers.get_lacus().is_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:
|
except:
|
||||||
self.is_lacus_up = False
|
self.is_lacus_up = False
|
||||||
if not self.is_lacus_up:
|
if not self.is_lacus_up:
|
||||||
|
|
|
@ -115,7 +115,7 @@ class AbstractDaterangeObject(AbstractObject, ABC):
|
||||||
# if hash already in item
|
# if hash already in item
|
||||||
def _add(self, date, item_id):
|
def _add(self, date, item_id):
|
||||||
if not self.exists():
|
if not self.exists():
|
||||||
self._add_create(date)
|
self._add_create()
|
||||||
self.set_first_seen(date)
|
self.set_first_seen(date)
|
||||||
self.set_last_seen(date)
|
self.set_last_seen(date)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue