From 1e8f8e9e9c0b41048dd11f4ffe9fa6769ca1306b Mon Sep 17 00:00:00 2001 From: terrtia Date: Thu, 15 Feb 2024 12:02:01 +0100 Subject: [PATCH] chg: [tracker] list of last matchs, show description --- bin/lib/Tracker.py | 2 +- var/www/templates/hunter/trackers_dashboard.html | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/lib/Tracker.py b/bin/lib/Tracker.py index 41fc0200..2e07570a 100755 --- a/bin/lib/Tracker.py +++ b/bin/lib/Tracker.py @@ -701,7 +701,7 @@ def get_trackers_dashboard(): for raw in r_tracker.lrange('trackers:dashboard', 0, -1): tracker_uuid, timestamp, obj_type, subtype, obj_id = raw.split(':', 4) tracker = Tracker(tracker_uuid) - meta = tracker.get_meta(options={'tags'}) + meta = tracker.get_meta(options={'description', 'tags'}) if not meta.get('type'): meta['type'] = 'Tracker DELETED' timestamp = datetime.datetime.fromtimestamp(float(timestamp)).strftime('%Y-%m-%d %H:%M:%S') diff --git a/var/www/templates/hunter/trackers_dashboard.html b/var/www/templates/hunter/trackers_dashboard.html index 0df8fbc6..cd617e89 100644 --- a/var/www/templates/hunter/trackers_dashboard.html +++ b/var/www/templates/hunter/trackers_dashboard.html @@ -108,6 +108,9 @@ {{ meta['tracked'] }} {% endif %} {% endif %} + {% if meta['description'] %} +
{{ meta['description'] }}
+ {% endif %}