示例#1
0
def view(studiengang, semester):
    try:
        loaded = load(studiengang, semester)
        return render_template('table.html', input_data=loaded)
    except NoSuchCourse:
        return render_template('table.html', input_data={})
示例#2
0
def api_root(studiengang, semester):
    try:
        return json.dumps(load(studiengang, semester))
    except NoSuchCourse:
        return '{}'