mirror of https://github.com/CIRCL/AIL-framework
fix: [ocr] fix None copy date
parent
20c98de0fa
commit
42ef6fb2e5
|
@ -133,6 +133,7 @@ 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)
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue