From dbcdfd44dd24876d65ecb84fe432c6ca41a0e6e9 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Fri, 23 Dec 2022 13:28:24 +1100 Subject: [PATCH] remove use of tmp_locn, use explicit coords, sizes - partial BUG-108 fix --- templates/viewer.html | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/templates/viewer.html b/templates/viewer.html index c466083..82b7858 100644 --- a/templates/viewer.html +++ b/templates/viewer.html @@ -43,16 +43,7 @@ {% endif %} e.faces=[] {% for face in objs[id].file_details.faces %} - data = { - 'id': '{{face.id}}', - {% if face.tmp_locn %} - 'x': '{{face.tmp_locn[3]}}', 'y': '{{face.tmp_locn[0]}}', - 'w': '{{face.tmp_locn[1]-face.tmp_locn[3]}}', 'h':'{{face.tmp_locn[2]-face.tmp_locn[0]}}' - {% else %} - 'x': '0', 'y': '0', - 'w': '1', 'h':'1' - {% endif %} - } + data = { 'id': '{{face.id}}', 'x': '{{face.face_left}}', 'y': '{{face.face_top}}', 'w': '{{face.w}}', 'h':'{{face.h}}' } {% if face.refimg %} data['who']='{{face.refimg.person.tag}}' data['distance']="{{face.refimg_lnk.face_distance|round(2)}}"