mirror of
https://github.com/ail-project/ail-framework.git
synced 2025-09-03 13:42:35 +00:00
fix: [crawler] filter lookup parent + domain daterange
This commit is contained in:
parent
c8b1c67a08
commit
83e11082b5
5 changed files with 26 additions and 3 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue