return thumbnail when successful rotation
This commit is contained in:
3
files.py
3
files.py
@@ -513,6 +513,9 @@ def checkrotatejob():
|
||||
resp={}
|
||||
resp['finished']=False
|
||||
if job.pa_job_state == 'Completed':
|
||||
id=[jex.value for jex in job.extra if jex.name == "id"][0]
|
||||
e=Entry.query.join(File).filter(Entry.id==id).first()
|
||||
resp['thumbnail']=e.file_details.thumbnail
|
||||
resp['finished']=True
|
||||
return resp
|
||||
|
||||
|
||||
Reference in New Issue
Block a user