chg: [correlation] tags all objects

This commit is contained in:
Terrtia 2023-04-05 16:09:06 +02:00
parent 3b1fc0fd2a
commit f45f9e5836
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0
5 changed files with 131 additions and 45 deletions

View file

@ -213,11 +213,11 @@ class AbstractObject(ABC):
"""
return get_correlations(self.type, self.subtype, self.id, filter_types=[obj_type])
def get_correlations(self):
def get_correlations(self, filter_types=[]):
"""
Get object correlations
"""
return get_correlations(self.type, self.subtype, self.id)
return get_correlations(self.type, self.subtype, self.id, filter_types=filter_types)
def get_nb_correlation(self, correl_type):
return get_nb_correlation_by_correl_type(self.type, self.get_subtype(r_str=True), self.id, correl_type)