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
170a7a86
Commit
170a7a86
authored
Oct 14, 2017
by
Julian Rother
Browse files
Fixed legacy_auth handler for on_publish_done events
parent
02be1c95
Changes
1
Hide whitespace changes
Inline
Side-by-side
livestreams.py
View file @
170a7a86
...
...
@@ -17,9 +17,9 @@ def streamauth():
return
'Bad request'
,
400
if
not
internal
:
return
'Forbidden'
,
403
if
request
.
values
[
'pass'
]
!=
'caisoh8aht0wuSu'
:
return
'Forbidden'
,
403
if
request
.
values
[
'call'
]
==
'publish'
:
if
request
.
values
[
'pass'
]
!=
'caisoh8aht0wuSu'
:
return
'Forbidden'
,
403
matches
=
query
(
"SELECT lectures.* FROM lectures JOIN courses ON lectures.course_id = courses.id WHERE courses.handle = ? ORDER BY lectures.time DESC"
,
request
.
values
[
'name'
])
now
=
datetime
.
now
()
match
=
{
'id'
:
-
1
}
...
...
Write
Preview
Markdown
is supported
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