Ejemplo n.º 1
0
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
Ejemplo n.º 2
0
def get_pronto_statistics_by_id(row_id):
    dao = ProntoStatisticDAO()
    statistics = dao.get(row_id)

    return {"statistics": statistics.as_dict()}, 200
Ejemplo n.º 3
0
def get_pronto_statistics(count, start):
    dao = ProntoStatisticDAO()
    statistics = dao.get_all(count, start)

    return {"statistics": convert_obj_list_to_dict_list(statistics)}, 200