From 6b0afd286ed3421c14f829bec0f89019212d1bbd Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Thu, 24 Apr 2025 09:25:07 +0100 Subject: [PATCH] api: Don't use v5 qr verify if batch feature_comparison_threshold unset --- api/products/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/products/views.py b/api/products/views.py index 683c238..90ac7dc 100644 --- a/api/products/views.py +++ b/api/products/views.py @@ -713,7 +713,8 @@ class QrVerifyView(BaseView): sd.tenant = tenant sd.batch = sc.batch self.dot_angle_check(sc.batch, tf.name, messages, request.data.get("angle")) - self.do_v5_qr_verify(tf.name, messages) + if sc.batch.feature_comparison_threshold > 0.01: + self.do_v5_qr_verify(tf.name, messages) sd.succeeded = True article_id = None if product.article: