def getNumberOfRepliesPerDay(self): dao = PostDAO() result = dao.getNumberOfRepliesPerDay() if not result: return jsonify(Error="Not found"), 404 mapped_result = [] for r in result: mapped_result.append(mapInteractionPerDayToDict(r)) return jsonify(mapped_result)
def getNumberOfRepliesPerDay(self): dao = PostDAO() result = dao.getNumberOfRepliesPerDay() return jsonify(Replies=result)