fix: [api] get titles domain

This commit is contained in:
terrtia 2024-02-16 11:56:48 +01:00
parent 782677e8ff
commit 495ceea73d
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -236,7 +236,8 @@ class AbstractDaterangeObjects(ABC):
content = obj.get_content() content = obj.get_content()
if content not in titles: if content not in titles:
titles[content] = [] titles[content] = []
titles[content].append(obj.get_id()) for domain in obj.get_correlation('domain').get('domain', []):
titles[content].append(domain[1:])
return titles return titles
def search_by_content(self, content_to_search, r_pos=False, case_sensitive=True): def search_by_content(self, content_to_search, r_pos=False, case_sensitive=True):