fix BUG-141, crashing pa_job_manager when transforming a non-Image
This commit is contained in:
3
BUGs
3
BUGs
@@ -1,7 +1,6 @@
|
|||||||
### Next: 146
|
### Next: 146
|
||||||
BUG-143: if I skip next fast enough in files_ip, it can get the warning about changes to entry list... (would have though I disabled next page until loaded)
|
BUG-143: if I skip next fast enough in files_ip, it can get the warning about changes to entry list... (would have though I disabled next page until loaded)
|
||||||
BUG-142: after transforming, the face data is still in the old spots, really should delete it / make it recalc
|
BUG-142: after transforming, the face data is still in the old spots, really should delete it - any change invalidates the face match
|
||||||
BUG-141: can currently try to flip a video (in a highlighted group)
|
|
||||||
BUG-140: When db is restarted underneath PA, it crashes job mgr... It should just accept timeouts, and keep trying to reconnect every 2? mins
|
BUG-140: When db is restarted underneath PA, it crashes job mgr... It should just accept timeouts, and keep trying to reconnect every 2? mins
|
||||||
BUG-125: when an image is highlighted, then post the contextmenu on a different image - the highlight does not move to the new image
|
BUG-125: when an image is highlighted, then post the contextmenu on a different image - the highlight does not move to the new image
|
||||||
and the selected menu function processes the original or the new depending on the way the code works.
|
and the selected menu function processes the original or the new depending on the way the code works.
|
||||||
|
|||||||
@@ -1897,6 +1897,11 @@ def JobTransformImage(job):
|
|||||||
amt=[jex.value for jex in job.extra if jex.name == "amt"][0]
|
amt=[jex.value for jex in job.extra if jex.name == "amt"][0]
|
||||||
e=session.query(Entry).join(File).filter(Entry.id==id).first()
|
e=session.query(Entry).join(File).filter(Entry.id==id).first()
|
||||||
PAprint( f"JobTransformImage: job={job.id}, id={id}, amt={amt}" )
|
PAprint( f"JobTransformImage: job={job.id}, id={id}, amt={amt}" )
|
||||||
|
# cant transfer non-image, but may get here if multi-select includes non-Image
|
||||||
|
if e.type.name != 'Image':
|
||||||
|
removeEntryAmendment( job, id )
|
||||||
|
FinishJob(job, "Cannot rotate file as it is not an Image","Failed")
|
||||||
|
return
|
||||||
|
|
||||||
if amt == "fliph":
|
if amt == "fliph":
|
||||||
AddLogForJob(job, f"INFO: Flipping {e.FullPathOnFS()} horizontally" )
|
AddLogForJob(job, f"INFO: Flipping {e.FullPathOnFS()} horizontally" )
|
||||||
|
|||||||
Reference in New Issue
Block a user