fix: 修复flake8 F811/F541问题
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Successful in 33s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 1m5s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 1m14s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Build Production Runtime Images (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Successful in 1m16s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Successful in 33s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 1m5s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 1m14s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Build Production Runtime Images (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Successful in 1m16s
This commit is contained in:
@@ -73,9 +73,6 @@ def batch_download_videos(self, video_ids: list[str], user_id: str = "") -> dict
|
||||
# 上传 zip 到 OSS
|
||||
if not zip_path.exists() or zip_path.stat().st_size == 0:
|
||||
raise RuntimeError("Batch download zip file is empty")
|
||||
|
||||
import uuid
|
||||
|
||||
zip_storage_key = f"batch-downloads/{uuid.uuid4().hex}/{zip_filename}"
|
||||
download_url = upload_to_oss(str(zip_path), zip_storage_key)
|
||||
|
||||
|
||||
@@ -161,7 +161,7 @@ def create_asset(
|
||||
codec: str | None,
|
||||
) -> dict:
|
||||
"""创建 ready 状态的素材。"""
|
||||
print(f"[2/2] 创建 ready 状态素材...")
|
||||
print("[2/2] 创建 ready 状态素材...")
|
||||
body = {
|
||||
"project_id": project_id,
|
||||
"library_id": library_id,
|
||||
@@ -243,8 +243,8 @@ def main():
|
||||
print()
|
||||
print("调用示例:")
|
||||
print(f" export ASSET_ID={asset_id}")
|
||||
print(f" # 在生成任务中使用:")
|
||||
print(f" # --asset-id $ASSET_ID")
|
||||
print(" # 在生成任务中使用:")
|
||||
print(" # --asset-id $ASSET_ID")
|
||||
print()
|
||||
|
||||
# 输出 asset_id 到 stdout(方便脚本捕获)
|
||||
|
||||
Reference in New Issue
Block a user