fix: [api] get titles domain

dev
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
1 changed files with 2 additions and 1 deletions

View File

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