fix: bug when label contain '\n'

pull/9/head
Sami Mokaddem 2017-11-21 14:49:41 +01:00
parent bc0d825ce9
commit 60470a1ade
1 changed files with 1 additions and 0 deletions

View File

@ -79,6 +79,7 @@ class Trendings_helper:
if specificLabel is None: if specificLabel is None:
return self.getGenericTrending('TRENDINGS_EVENTS', dateS, dateE) return self.getGenericTrending('TRENDINGS_EVENTS', dateS, dateE)
else: else:
specificLabel = specificLabel.replace('\\n', '\n'); # reset correctly label with their \n (CR) instead of their char value
return self.getSpecificTrending('TRENDINGS_EVENTS', dateS, dateE, specificLabel) return self.getSpecificTrending('TRENDINGS_EVENTS', dateS, dateE, specificLabel)
def getTrendingCategs(self, dateS, dateE): def getTrendingCategs(self, dateS, dateE):