fix: 修复flake8 F811/F541问题
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1542h4m15s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1542h4m16s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1542h4m16s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1542h4m18s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been skipped
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1542h35m53s
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1542h35m54s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1542h4m15s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1542h4m16s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1542h4m16s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1542h4m18s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been skipped
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1542h35m53s
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1542h35m54s
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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user