remove face data after transform (BUG-142), also only reset viewing image if we are viewing, and remove debugs

This commit is contained in:
2025-10-28 22:16:26 +11:00
parent bc2d4384c9
commit 76b0745cc3
4 changed files with 11 additions and 7 deletions

View File

@@ -1925,6 +1925,8 @@ def JobTransformImage(job):
e.file_details.hash = md5( job, e )
PAprint( f"JobTransformImage DONE thumb: job={job.id}, id={id}, amt={amt}" )
session.add(e)
# any faces in this file are no longer valid, remove them
session.query(FaceFileLink).filter(FaceFileLink.file_eid==e.id).delete()
removeEntryAmendment( job, id )
FinishJob(job, "Finished Processesing image rotation/flip")