diff --git a/photo_mask.py b/photo_mask.py index ccae35b..c1a0664 100644 --- a/photo_mask.py +++ b/photo_mask.py @@ -15,6 +15,7 @@ from sqlalchemy import update from auto_email.error_email import send_an_error_email from config.mysql import MysqlSession from config.photo_review import PHHD_BATCH_SIZE, SLEEP_MINUTES +from config.ucloud import BUCKET from models import ZxPhrec, ZxPhhd from ucloud import ucloud @@ -224,7 +225,7 @@ def photo_mask(pk_phhd, content): .all() session.close() for phrec in phrecs: - is_copy_success = ucloud.copy_file("drg100", phrec.cfjaddress, "drg103", phrec.cfjaddress) + is_copy_success = ucloud.copy_file(BUCKET, phrec.cfjaddress, "drg2015", phrec.cfjaddress) if not is_copy_success: continue img_url = ucloud.get_private_url(phrec.cfjaddress)