remove more face_locn code for BUG-108 clean up
This commit is contained in:
@@ -112,8 +112,6 @@ def AddRefimgToPerson( filename, person ):
|
||||
st.SetMessage( f"<b>Failed to find face in Refimg:</b>" )
|
||||
raise Exception("Could not find face in uploaded reference image" )
|
||||
return
|
||||
# DEL THIS NEXT LINE (BUG-108)
|
||||
refimg.face_locn = json.dumps(face_locn)
|
||||
refimg.face_top = face_locn[0]
|
||||
refimg.face_right = face_locn[1]
|
||||
refimg.face_bottom = face_locn[2]
|
||||
@@ -256,13 +254,6 @@ def person(id):
|
||||
if not person:
|
||||
st.SetMessage( f"No such person with id: {id}", "danger" )
|
||||
return render_template("base.html" )
|
||||
|
||||
for r in person.refimg:
|
||||
# in case DB data gets broken, just fix it - still keeps happening
|
||||
if r.face_locn[0]=='{':
|
||||
r.face_locn[0]='['
|
||||
r.face_locn[-1]=']'
|
||||
r.tmp_locn=json.loads(r.face_locn)
|
||||
form = PersonForm(request.values, obj=person)
|
||||
return render_template("person.html", person=person, form=form, page_title = page_title)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user