Added timeline for category

pull/29/head
Sami Mokaddem 2017-12-18 15:31:22 +01:00
parent 795dae2323
commit 89b46eba70
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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>