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
72555a73
Commit
72555a73
authored
Jan 03, 2018
by
Julian Rother
Browse files
Small fix
parent
a83d4165
Changes
1
Hide whitespace changes
Inline
Side-by-side
sorter.py
View file @
72555a73
...
...
@@ -36,7 +36,7 @@ def update_video_metadata(jobid, jobtype, data, state, status):
print
(
'Hash mismatch for video'
,
data
[
'video_id'
])
return
modify
(
'UPDATE videos_data SET hash = ?, file_size = ?, duration = ? WHERE id = ?'
,
status
[
'hash'
],
status
[
'filesize'
],
data
[
'duration'
],
data
[
'video_id'
])
status
[
'hash'
],
status
[
'filesize'
],
status
[
'duration'
],
data
[
'video_id'
])
def
insert_video
(
lectureid
,
dbfilepath
,
fileformatid
,
hash
=
""
,
filesize
=-
1
,
duration
=-
1
):
visible
=
query
(
'SELECT courses.autovisible FROM courses JOIN lectures ON lectures.course_id = courses.id WHERE lectures.id = ?'
,
lectureid
)[
0
][
'autovisible'
]
...
...
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