From 320f5ed40a773232b1683d2ea3475bb2630fd019 Mon Sep 17 00:00:00 2001 From: yeuimu <2197651308@qq.com> Date: Sat, 8 Aug 2026 06:41:36 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20OCR=20=E8=87=AA=E5=8A=A8=E9=87=8D?= =?UTF-8?q?=E8=B7=91=20tracking=20=E4=B8=BA=E7=A9=BA=E7=9A=84=E5=B7=B2?= =?UTF-8?q?=E8=AF=86=E5=88=AB=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flows/shared/db.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flows/shared/db.py b/flows/shared/db.py index 9bf8e18..ac3c621 100644 --- a/flows/shared/db.py +++ b/flows/shared/db.py @@ -115,7 +115,10 @@ class SyncDB: sql = ( 'SELECT "orderNo","createdAt","labelPdfUrl","countryRegion" ' 'FROM "Orders" ' - 'WHERE "labelPdfUrl" IS NOT NULL AND "ocrLayout" IS NULL' + 'WHERE "labelPdfUrl" IS NOT NULL ' + 'AND ("ocrLayout" IS NULL ' + ' OR ("ocrLayout" NOT IN (\'ERROR\',\'UNSUPPORTED\') ' + ' AND COALESCE("ocrTracking", \'\') = \'\'))' ) params: list = [] if country_regions: