Skip to content
Snippets Groups Projects
Commit 72555a73 authored by Julian Rother's avatar Julian Rother
Browse files

Small fix

parent a83d4165
Branches
No related tags found
No related merge requests found
......@@ -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']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment