Exemple #1
0
 def getTrendingHashtag(self):
     dao = HashtagDAO()
     result = dao.getTrendingHashtag()
     if not result:
         return jsonify(Error="Not found"), 404
     mapped_result = []
     for r in result:
         mapped_result.append(mapTrendingTopicToDict(r))
     return jsonify(mapped_result)
Exemple #2
0
 def getTrendingHashtag(self):
     dao = HashtagDAO()
     result = dao.getTrendingHashtag()
     return jsonify(result)