def get_pronto_statistics_of_past_months(month_count): dao = ProntoStatisticDAO() statistics = dao.get_past_months(month_count) return {"statistics": convert_obj_list_to_dict_list(statistics)}, 200
def get_pronto_statistics_by_id(row_id): dao = ProntoStatisticDAO() statistics = dao.get(row_id) return {"statistics": statistics.as_dict()}, 200
def get_pronto_statistics(count, start): dao = ProntoStatisticDAO() statistics = dao.get_all(count, start) return {"statistics": convert_obj_list_to_dict_list(statistics)}, 200