mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-25 15:27:17 +00:00
fix: [ocr] fix None copy date
This commit is contained in:
parent
20c98de0fa
commit
42ef6fb2e5
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue