Commit 60736850 authored by Andreas Valder's avatar Andreas Valder
Browse files

fixed format always beeing none in sorter

parent 8944d078
......@@ -139,7 +139,7 @@ def sort_now():
if not 'format' in data:
data['format'] = 0
# insert the video into videos_data and log
insert_video( matches[0]['id'], dbfilepath, filepath, fileformatid)
insert_video( matches[0]['id'], dbfilepath, filepath, data['format'])
else:
# if we couldn't match the video on exactly one lecture, log an error
matches_id = []
......
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