From 495ceea73df98f293634a345f0b8d2be61704971 Mon Sep 17 00:00:00 2001 From: terrtia Date: Fri, 16 Feb 2024 11:56:48 +0100 Subject: [PATCH] fix: [api] get titles domain --- bin/lib/objects/abstract_daterange_object.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/lib/objects/abstract_daterange_object.py b/bin/lib/objects/abstract_daterange_object.py index 6f31a3ae..f6cb62e6 100755 --- a/bin/lib/objects/abstract_daterange_object.py +++ b/bin/lib/objects/abstract_daterange_object.py @@ -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):