diff --git a/docker-compose.yml b/docker-compose.yml index 3c555d0..dbb329b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,6 @@ x-env: &template - image: fcb_photo_review:1.14.3 + image: fcb_photo_review:1.14.4 restart: always x-review: diff --git a/photo_mask/auto_photo_mask.py b/photo_mask/auto_photo_mask.py index b016f7a..fd1c18d 100644 --- a/photo_mask/auto_photo_mask.py +++ b/photo_mask/auto_photo_mask.py @@ -258,6 +258,7 @@ def main(): .join(ZxPhrec, ZxPhhd.pk_phhd == ZxPhrec.pk_phhd, isouter=True) .filter(ZxPhhd.paint_flag == "1") .filter(ZxPhrec.pk_phrec.isnot(None)) + .order_by(ZxPhhd.priority_num.desc()) .distinct().limit(PHHD_BATCH_SIZE).all()) # 将状态改为正在涂抹中 pk_phhd_values = [phhd.pk_phhd for phhd in phhds] diff --git a/photo_review/auto_photo_review.py b/photo_review/auto_photo_review.py index 5ca5d6f..e4bd981 100644 --- a/photo_review/auto_photo_review.py +++ b/photo_review/auto_photo_review.py @@ -507,6 +507,7 @@ def main(): .join(ZxPhrec, ZxPhhd.pk_phhd == ZxPhrec.pk_phhd, isouter=True) .filter(ZxPhhd.exsuccess_flag == "1") .filter(ZxPhrec.pk_phrec.isnot(None)) + .order_by(ZxPhhd.priority_num.desc()) .distinct().limit(PHHD_BATCH_SIZE).all()) # 将状态改为正在识别中 pk_phhd_values = [phhd.pk_phhd for phhd in phhds]