Commit 72555a73 authored by Julian Rother's avatar Julian Rother
Browse files

Small fix

parent a83d4165
......@@ -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']
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment