Skip to content
Snippets Groups Projects
Commit 775c8a35 authored by Andreas Valder's avatar Andreas Valder
Browse files

removed test for thumbnails if a thumbnail does already exist

parent 07493f88
Branches
No related tags found
No related merge requests found
...@@ -36,9 +36,6 @@ def insert_video(lectureid,dbfilepath,filepath,fileformatid): ...@@ -36,9 +36,6 @@ def insert_video(lectureid,dbfilepath,filepath,fileformatid):
schedule_thumbnail(lectureid) schedule_thumbnail(lectureid)
def schedule_thumbnail(lectureid): def schedule_thumbnail(lectureid):
exists = query('SELECT * FROM jobs WHERE data LIKE ?','%"lectureid": "'+str(lectureid)+'"%' )
if exists:
return
path = query('SELECT path FROM videos WHERE lecture_id') path = query('SELECT path FROM videos WHERE lecture_id')
videos = query(''' videos = query('''
SELECT videos.path SELECT videos.path
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment