fix: [crawler] filter lookup parent + domain daterange

This commit is contained in:
terrtia 2024-10-07 11:03:56 +02:00
parent c8b1c67a08
commit 83e11082b5
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0
5 changed files with 26 additions and 3 deletions

View file

@ -19,6 +19,7 @@ sys.path.append(os.environ['AIL_BIN'])
# Import Project packages
##################################
from lib import ail_logger
from lib.ail_queues import is_obj_in_process
from lib import Tag
from lib.ConfigLoader import ConfigLoader
from lib import Duplicate
@ -92,6 +93,15 @@ class AbstractObject(ABC):
else:
return r_object.hset(f'meta:{self.type}:{self.get_subtype(r_str=True)}:{self.id}', field, value)
## Queues ##
# is_in_queue , is_in_module
def is_being_processed(self):
return is_obj_in_process(self.get_global_id())
# -Queues- #
## Tags ##
def get_tags(self, r_list=False):
tags = Tag.get_object_tags(self.type, self.id, self.get_subtype(r_str=True))