pylti.flask.lti.post_grade2

Here are the examples of the python api pylti.flask.lti.post_grade2 taken from open source projects.

2 Examples

Example 0

@app.route("/post_grade2/<float:grade>")
@lti_flask(error=error, request='session', app=app)
def post_grade2(grade, lti):
    """
    Access route with 'session' request.

    :param lti: `lti` object
    :return: string "grade={}"
    """
    ret = lti.post_grade2(grade)
    return "grade={}".format(ret)

Example 1

@app.route("/post_grade2/<float:grade>")
@lti_flask(error=error, request='session', app=app)
def post_grade2(grade, lti):
    """
    Access route with 'session' request.

    :param lti: `lti` object
    :return: string "grade={}"
    """
    ret = lti.post_grade2(grade)
    return "grade={}".format(ret)