return thumbnail when successful rotation

This commit is contained in:
2021-07-16 22:27:30 +10:00
parent 3ac6f143f4
commit 99e99da340

View File

@@ -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