Skip to content

Commit

Permalink
chg: [tracker] list of last matchs, show description
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Feb 15, 2024
1 parent 1a3ffe7 commit 1e8f8e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/lib/Tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
3 changes: 3 additions & 0 deletions var/www/templates/hunter/trackers_dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ <h5 class="card-title"><b>Trackers Last Matches</b></h5>
{{ meta['tracked'] }}
{% endif %}
{% endif %}
{% if meta['description'] %}
<div><i>{{ meta['description'] }}</i></div>
{% endif %}
</a>
</span>
</td>
Expand Down

0 comments on commit 1e8f8e9

Please sign in to comment.