feat: label-ocr 默认只处理英国(GB)
This commit is contained in:
+3
-3
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user