Пример #1
0
def monitor(username, coprname):
    copr = coprs_logic.CoprsLogic.get(flask.g.user, username, coprname).first()

    monitor_data = builds_logic.BuildsMonitorLogic.get_monitor_data(copr)
    output = MonitorWrapper(monitor_data).to_dict()

    jsonout = flask.jsonify(output)
    jsonout.status_code = 200
    return jsonout
Пример #2
0
def monitor(copr):
    monitor_data = builds_logic.BuildsMonitorLogic.get_monitor_data(copr)
    output = MonitorWrapper(copr, monitor_data).to_dict()
    return flask.jsonify(output)