@app.route('/missing_and_stale_quizzes/<course_id>/', methods=['GET'])
def missing_and_stale_quizzes_check(course_id):
    '\n    Check if there are missing quizzes.\n\n    :param course_id: The Canvas ID of the Course.\n    :type course_id: int\n    :rtype: str\n    :returns: A JSON-formatted string representation of a boolean.\n        "true" if there are missing quizzes, "false" if there are not.\n    '
    course = Course.query.filter_by(canvas_id=course_id).first()
    if (course is None):
        return 'false'
    num_extensions = Extension.query.filter_by(course_id=course.id).count()
    if (num_extensions == 0):
        return 'false'
    missing = (len(missing_and_stale_quizzes(course_id, True)) > 0)
    return json.dumps(missing)
Check if there are missing quizzes.

:param course_id: The Canvas ID of the Course.
:type course_id: int
:rtype: str
:returns: A JSON-formatted string representation of a boolean.
    "true" if there are missing quizzes, "false" if there are not.
@app.route('/missing_and_stale_quizzes/<course_id>/', methods=['GET'])
def missing_and_stale_quizzes_check(course_id):
    '\n    Check if there are missing quizzes.\n\n    :param course_id: The Canvas ID of the Course.\n    :type course_id: int\n    :rtype: str\n    :returns: A JSON-formatted string representation of a boolean.\n        "true" if there are missing quizzes, "false" if there are not.\n    '
    course = Course.query.filter_by(canvas_id=course_id).first()
    if (course is None):
        return 'false'
    num_extensions = Extension.query.filter_by(course_id=course.id).count()
    if (num_extensions == 0):
        return 'false'
    missing = (len(missing_and_stale_quizzes(course_id, True)) > 0)
    return json.dumps(missing)