unmatched faces now sorts size of face desc, and is slightly prettier -- still slow and only takes you to the file anyway, might optimise that later. still no code to auto deal with unmatched face, but will add some capabilities next. Also, remembered last dir when file_ip/sp/bin. Also throw error if try to find unknown person - happened since I allowed the back/forward.
This commit is contained in:
@@ -178,6 +178,10 @@ def person(id):
|
||||
return render_template("person.html", form=form, page_title=page_title)
|
||||
else:
|
||||
person = Person.query.get(id)
|
||||
if not person:
|
||||
st.SetMessage( f"No such person with id: {id}", "danger" )
|
||||
return render_template("base.html" )
|
||||
|
||||
for r in person.refimg:
|
||||
r.face_locn=json.loads(r.face_locn)
|
||||
form = PersonForm(request.values, obj=person)
|
||||
|
||||
Reference in New Issue
Block a user