From 89b46eba70f7ae844a2ce61edfc0d13f26e35c6b Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Mon, 18 Dec 2017 15:31:22 +0100 Subject: [PATCH] Added timeline for category --- helpers/trendings_helper.py | 4 +++- templates/trendings.html | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/helpers/trendings_helper.py b/helpers/trendings_helper.py index 56fda34..3e70ae3 100644 --- a/helpers/trendings_helper.py +++ b/helpers/trendings_helper.py @@ -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 diff --git a/templates/trendings.html b/templates/trendings.html index 6601dd0..c9f2815 100644 --- a/templates/trendings.html +++ b/templates/trendings.html @@ -215,6 +215,7 @@ small { Timeline: