Skip to content

Commit

Permalink
fix: [ocr] fix None copy date
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Apr 25, 2024
1 parent 20c98de commit 42ef6fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/lib/objects/abstract_daterange_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ def _copy_from(self, obj_type, obj_id):
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()
Expand Down

0 comments on commit 42ef6fb

Please sign in to comment.