feat: label-ocr 默认只处理英国(GB)

This commit is contained in:
yeuimu
2026-07-24 08:28:04 +00:00
parent f0580a8ce4
commit 7267aa928c
+3 -3
View File
@@ -86,10 +86,10 @@ def process_all(pending: list) -> dict[str, int]:
@flow(name="label-ocr", log_prints=True) @flow(name="label-ocr", log_prints=True)
def label_ocr(destination_country: str | None = None, courier_source: str | None = None) -> dict: def label_ocr(destination_country: str | None = 'GB', courier_source: str | None = None) -> dict:
"""面单 OCR enrichment。可选按 destinationCountry / courierSource 筛选优先处理。 """面单 OCR enrichment。默认只处理英国(GB),可选 courierSource 进一步筛选。
例: label_ocr(destination_country='GB', courier_source='手动物流') 手动跑其他国家: label_ocr(destination_country='US')
""" """
db = SyncDB() db = SyncDB()
before = db.count_ocr_status() before = db.count_ocr_status()