mirror of https://github.com/CIRCL/AIL-framework
chg: [tracker] list of last matchs, show description
parent
1a3ffe70c1
commit
1e8f8e9e9c
|
@ -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')
|
||||
|
|
|
@ -108,6 +108,9 @@
|
|||
{{ meta['tracked'] }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if meta['description'] %}
|
||||
<div><i>{{ meta['description'] }}</i></div>
|
||||
{% endif %}
|
||||
</a>
|
||||
</span>
|
||||
</td>
|
||||
|
|
Loading…
Reference in New Issue