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}
|
# 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.
|
# so that it can be displayed easily on the timeline.
|
||||||
def getGenericTrendingOvertime(self, dateS, dateE, choice=None, topNum=0):
|
def getGenericTrendingOvertime(self, dateS, dateE, choice=None, topNum=0):
|
||||||
if choice == 'tags':
|
if choice == 'categs':
|
||||||
|
trendingType = self.keyCateg
|
||||||
|
elif choice == 'tags':
|
||||||
trendingType = self.keyTag
|
trendingType = self.keyTag
|
||||||
else:
|
else:
|
||||||
trendingType = self.keyEvent
|
trendingType = self.keyEvent
|
||||||
|
|
|
@ -215,6 +215,7 @@ small {
|
||||||
<b>Timeline:</b>
|
<b>Timeline:</b>
|
||||||
<select id="timeline_selector">
|
<select id="timeline_selector">
|
||||||
<option value="events" selected="">Events</option>
|
<option value="events" selected="">Events</option>
|
||||||
|
<option value="categs">Categories</option>
|
||||||
<option value="tags">Tags</option>
|
<option value="tags">Tags</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue