예제 #1
0
파일: __init__.py 프로젝트: octobear2/ob2
def assignments_one_grades_json(name):
    with DbCursor() as c:
        data = Datasets.grade_distribution(c, name)
    if not data:
        abort(404)
    resp = Response(json.dumps(data))
    resp.headers["Content-Type"] = "application/json"
    return resp
예제 #2
0
def assignments_one_grade_distribution(name):
    with DbCursor() as c:
        data = Datasets.grade_distribution(c, name)
    if not data:
        abort(404)
    resp = Response(json.dumps(data))
    resp.headers["Content-Type"] = "application/json"
    return resp
예제 #3
0
def assignments_one_timeseries_grade_percentiles(name):
    with DbCursor() as c:
        data = Datasets.timeseries_grade_percentiles(c, name)
    if not data:
        abort(404)
    resp = Response(json.dumps(data))
    resp.headers["Content-Type"] = "application/json"
    return resp
예제 #4
0
파일: __init__.py 프로젝트: cycomachead/ob2
def assignments_one_timeseries_grade_percentiles(name):
    with DbCursor() as c:
        data = Datasets.timeseries_grade_percentiles(c, name)
    if not data:
        abort(404)
    resp = Response(json.dumps(data))
    resp.headers["Content-Type"] = "application/json"
    return resp