Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Video AG Infrastruktur
website
Commits
7325c1cc
Commit
7325c1cc
authored
Sep 06, 2016
by
Julian Rother
Browse files
Fixed endpoint name I forgot when renaming them
parent
65a9a2d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
server.py
View file @
7325c1cc
...
...
@@ -143,7 +143,7 @@ def courses():
@
app
.
route
(
'/course/<handle>'
)
@
app
.
route
(
'/course/<int:id>'
)
@
handle_errors
(
'course'
,
'Diese Veranstaltung existiert nicht!'
,
404
,
IndexError
)
@
handle_errors
(
'course
s
'
,
'Diese Veranstaltung existiert nicht!'
,
404
,
IndexError
)
def
course
(
id
=
None
,
handle
=
None
):
if
id
:
courses
=
query
(
'SELECT * FROM courses WHERE id = ? AND (? OR visible)'
,
id
,
ismod
())[
0
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment