Exemplo n.º 1
0
 def getNumberOfDislikesPerDay(self):
     dao = PostDAO()
     result = dao.getNumberOfDislikesPerDay()
     if not result:
         return jsonify(Error="Not found"), 404
     mapped_result = []
     for r in result:
         mapped_result.append(mapInteractionPerDayToDict(r))
     return jsonify(mapped_result)
Exemplo n.º 2
0
 def getNumberOfDislikesPerDay(self):
     dao = PostDAO()
     result = dao.getNumberOfDislikesPerDay()
     return jsonify(Dislikes=result)