Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Roman Karwacik
website
Commits
95f0573f
Commit
95f0573f
authored
Jul 28, 2018
by
Julian Rother
Browse files
Another fix
parent
d6827209
Changes
1
Hide whitespace changes
Inline
Side-by-side
livestreams.py
View file @
95f0573f
...
...
@@ -156,7 +156,7 @@ def streamauth(server):
return
'Ok'
,
200
for
lecture
in
query
(
'SELECT * FROM lectures WHERE stream_job IS NOT NULL'
):
settings
=
json
.
loads
(
lecture
[
'stream_settings'
])
if
source
[
'id'
]
in
[
settings
.
get
(
'source1'
),
settings
.
get
(
'source2'
)]:
if
str
(
source
[
'id'
]
)
in
[
str
(
settings
.
get
(
'source1'
)
)
,
str
(
settings
.
get
(
'source2'
)
)
]:
cancel_job
(
lecture
[
'stream_job'
])
return
'Ok'
,
200
return
'Bad request'
,
400
...
...
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