From 4ac52a771a17bd6f3e8c53547c5c715672bcf79f Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Fri, 23 Dec 2022 14:36:22 +1100 Subject: [PATCH] clean up comments --- files.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/files.py b/files.py index dd44256..880abc6 100644 --- a/files.py +++ b/files.py @@ -661,7 +661,7 @@ def viewlist(): resp['objs'][e.id]['face_model'] = e.file_details.faces[0].facefile_lnk.model_used resp['objs'][e.id]['faces'] = [] - # put locn data back into array format + # put face data back into array format (for js processing) fid=0 for face in e.file_details.faces: fd= {} @@ -712,7 +712,7 @@ def view(id): # if this is a dir, we wont view it with a click anyway, so move on... if not e.file_details: continue - # put locn data back into array format + # process any overrides for face in e.file_details.faces: # now get any relevant override and store it in objs... fnmo = FaceNoMatchOverride.query.filter(FaceNoMatchOverride.face_id==face.id).first() @@ -725,7 +725,6 @@ def view(id): eids=eids.rstrip(",") # jic, sometimes we trip this, and rather than show broken pages / destroy - # face locn data, just warn & redirect if id not in eids: print( f"ERROR: viewing an id, but its not in eids OPT={OPT}, id={id}, eids={eids}") msg="Sorry, viewing data is confused, cannot view this image now"