From 7267aa928cfab4e5bd4a000f0acf4f6a397483fd Mon Sep 17 00:00:00 2001 From: yeuimu <2197651308@qq.com> Date: Fri, 24 Jul 2026 08:28:04 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20label-ocr=20=E9=BB=98=E8=AE=A4=E5=8F=AA?= =?UTF-8?q?=E5=A4=84=E7=90=86=E8=8B=B1=E5=9B=BD(GB)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flows/label_ocr.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flows/label_ocr.py b/flows/label_ocr.py index 8e6bd3d..60c48f2 100644 --- a/flows/label_ocr.py +++ b/flows/label_ocr.py @@ -86,10 +86,10 @@ def process_all(pending: list) -> dict[str, int]: @flow(name="label-ocr", log_prints=True) -def label_ocr(destination_country: str | None = None, courier_source: str | None = None) -> dict: - """面单 OCR enrichment。可选按 destinationCountry / courierSource 筛选优先处理。 +def label_ocr(destination_country: str | None = 'GB', courier_source: str | None = None) -> dict: + """面单 OCR enrichment。默认只处理英国(GB),可选 courierSource 进一步筛选。 - 例: label_ocr(destination_country='GB', courier_source='手动物流') + 手动跑其他国家: label_ocr(destination_country='US') """ db = SyncDB() before = db.count_ocr_status()