mirror of https://github.com/CIRCL/AIL-framework
fix: [ocr] fix None copy date
parent
20c98de0fa
commit
42ef6fb2e5
|
@ -133,7 +133,8 @@ class AbstractDaterangeObject(AbstractObject, ABC):
|
|||
if first_seen and last_seen:
|
||||
for date in Date.get_daterange(first_seen, last_seen):
|
||||
nb = r_object.zscore(f'{obj_type}:date:{date}', self.id)
|
||||
r_object.zincrby(f'{self.type}:date:{date}', nb, self.id)
|
||||
if nb:
|
||||
r_object.zincrby(f'{self.type}:date:{date}', nb, self.id)
|
||||
update_obj_date(first_seen, self.type)
|
||||
update_obj_date(last_seen, self.type)
|
||||
self._add_create()
|
||||
|
|
Loading…
Reference in New Issue