From fa63e08b595821abca340e5baacf825ce36f044a Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Tue, 19 Aug 2025 20:22:49 +1000 Subject: [PATCH] store away person.id per matched face to support match_add_refimg in context menu --- templates/viewer.html | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/viewer.html b/templates/viewer.html index 419824c..3639aa4 100644 --- a/templates/viewer.html +++ b/templates/viewer.html @@ -46,6 +46,7 @@ {% for face in objs[id].file_details.faces %} data = { 'id': '{{face.id}}', 'x': '{{face.face_left}}', 'y': '{{face.face_top}}', 'w': '{{face.w}}', 'h':'{{face.h}}' } {% if face.refimg %} + data['pid']='{{face.refimg.person.id}}' data['who']='{{face.refimg.person.tag}}' data['distance']="{{face.refimg_lnk.face_distance|round(2)}}" {% endif %}