diff --git a/bin/lib/objects/abstract_daterange_object.py b/bin/lib/objects/abstract_daterange_object.py index c4717ce9..99f73027 100755 --- a/bin/lib/objects/abstract_daterange_object.py +++ b/bin/lib/objects/abstract_daterange_object.py @@ -88,8 +88,8 @@ class AbstractDaterangeObject(AbstractObject, ABC): meta_dict['nb_seen'] = self.get_nb_seen() if 'sparkline' in options: meta_dict['sparkline'] = self.get_sparkline() - if 'last_full_date'in options: - meta_dict['last_full_date'] = self.get_last_full_date() + if 'last_full_date' in options: + meta_dict['last_full_date'] = meta_dict['last_seen'] return meta_dict def set_first_seen(self, first_seen): diff --git a/var/www/blueprints/hunters.py b/var/www/blueprints/hunters.py index 7a05897d..7a642d63 100644 --- a/var/www/blueprints/hunters.py +++ b/var/www/blueprints/hunters.py @@ -549,7 +549,7 @@ def retro_hunt_show_task(): dict_task['filters'] = json.dumps(dict_task['filters'], indent=4) if objs: - dict_task['objs'] = ail_objects.get_objects_meta(retro_hunt.get_objs(), flask_context=True) + dict_task['objs'] = ail_objects.get_objects_meta(retro_hunt.get_objs(), options={'last_full_date'}, flask_context=True) else: dict_task['objs'] = [] diff --git a/var/www/templates/hunter/show_retro_hunt.html b/var/www/templates/hunter/show_retro_hunt.html index 5244fed5..423be18b 100644 --- a/var/www/templates/hunter/show_retro_hunt.html +++ b/var/www/templates/hunter/show_retro_hunt.html @@ -204,7 +204,7 @@ Type Id - Tags + Last Date @@ -226,11 +226,16 @@ {{ object['id']}} +
+ {% for tag in object['tags'] %} + {{ tag }} + {% endfor %} +
- {% for tag in object['tags'] %} - {{ tag }} - {% endfor %} + {% if object['last_full_date'] %} + {{ object['last_full_date']}} + {% endif %} {# #}