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