Example #1
0
def delete_report_by_id(report_id):
    report = report_service.get_by_id(report_id)
    if report is None:
        return redirect(url_for('not_found'))
    report_service.delete(report)
    return "ok"
Example #2
0
def find_report_by_id(report_id):
    report = report_service.get_by_id(report_id)
    if report is None:
        return redirect(url_for('not_found'))
    return dumps(report_service.report_to_dict(report))