修正全局变量的获取

This commit is contained in:
2024-10-15 13:27:55 +08:00
parent b332aa00dd
commit c28fc62d3f
3 changed files with 18 additions and 7 deletions

View File

@@ -7,7 +7,7 @@ from opencc import OpenCC
from tenacity import retry, stop_after_attempt, wait_random
from log import PROJECT_ROOT
from photo_review import BATCH_ID
from photo_review import get_batch_id
from util import string_util, model_util
@@ -300,7 +300,7 @@ def get_tmp_img_path(img_full_name):
def get_processed_img_path(img_full_name):
return os.path.join(str(get_tmp_img_path(BATCH_ID)), img_full_name)
return os.path.join(str(get_tmp_img_path(get_batch_id())), img_full_name)
def parse_save_path(img_path):