Merge pull request #2 from SebastianSpeitel/patch-2

Added turm
This commit is contained in:
Clemens Riese 2019-12-14 14:01:07 +01:00 committed by GitHub
commit fabeeea0fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

5
app.py
View File

@ -14,6 +14,10 @@ def tu_ilmenau():
def about():
return redirect("https://github.com/clerie/walduni", code=302)
@app.route('/turm/')
def turm():
return redirect("https://turm.rz.tu-ilmenau.de/eE/aktuell/lstr_browser.php", code=302)
@app.route('/modultafeln/<course>/')
@app.route('/modultafel/<course>/')
@app.route('/modulplan/<course>/')
@ -23,7 +27,6 @@ def about():
@app.route('/modulplan/')
@app.route('/module/')
def modultafeln(course=""):
courseToPath = {
"amw": "AngewandteMedienundKommunikationswissenschaft/Bachelor/2014",
"amk": "AngewandteMedienundKommunikationswissenschaft/Bachelor/2014",