mirror of https://github.com/MISP/misp-dashboard
Added timeline for category
parent
795dae2323
commit
89b46eba70
|
@ -163,7 +163,9 @@ class Trendings_helper:
|
|||
# In contrary of getGenericTrending, it regroups items in the format: {item, start: timestamp1, end: timestamp2}
|
||||
# so that it can be displayed easily on the timeline.
|
||||
def getGenericTrendingOvertime(self, dateS, dateE, choice=None, topNum=0):
|
||||
if choice == 'tags':
|
||||
if choice == 'categs':
|
||||
trendingType = self.keyCateg
|
||||
elif choice == 'tags':
|
||||
trendingType = self.keyTag
|
||||
else:
|
||||
trendingType = self.keyEvent
|
||||
|
|
|
@ -215,6 +215,7 @@ small {
|
|||
<b>Timeline:</b>
|
||||
<select id="timeline_selector">
|
||||
<option value="events" selected="">Events</option>
|
||||
<option value="categs">Categories</option>
|
||||
<option value="tags">Tags</option>
|
||||
</select>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue