clean up comments
This commit is contained in:
5
files.py
5
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]['face_model'] = e.file_details.faces[0].facefile_lnk.model_used
|
||||||
resp['objs'][e.id]['faces'] = []
|
resp['objs'][e.id]['faces'] = []
|
||||||
|
|
||||||
# put locn data back into array format
|
# put face data back into array format (for js processing)
|
||||||
fid=0
|
fid=0
|
||||||
for face in e.file_details.faces:
|
for face in e.file_details.faces:
|
||||||
fd= {}
|
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 this is a dir, we wont view it with a click anyway, so move on...
|
||||||
if not e.file_details:
|
if not e.file_details:
|
||||||
continue
|
continue
|
||||||
# put locn data back into array format
|
# process any overrides
|
||||||
for face in e.file_details.faces:
|
for face in e.file_details.faces:
|
||||||
# now get any relevant override and store it in objs...
|
# now get any relevant override and store it in objs...
|
||||||
fnmo = FaceNoMatchOverride.query.filter(FaceNoMatchOverride.face_id==face.id).first()
|
fnmo = FaceNoMatchOverride.query.filter(FaceNoMatchOverride.face_id==face.id).first()
|
||||||
@@ -725,7 +725,6 @@ def view(id):
|
|||||||
|
|
||||||
eids=eids.rstrip(",")
|
eids=eids.rstrip(",")
|
||||||
# jic, sometimes we trip this, and rather than show broken pages / destroy
|
# jic, sometimes we trip this, and rather than show broken pages / destroy
|
||||||
# face locn data, just warn & redirect
|
|
||||||
if id not in eids:
|
if id not in eids:
|
||||||
print( f"ERROR: viewing an id, but its not in eids OPT={OPT}, id={id}, eids={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"
|
msg="Sorry, viewing data is confused, cannot view this image now"
|
||||||
|
|||||||
Reference in New Issue
Block a user