fix(ci): 修复 Validate job
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 1m20s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1608h44m54s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1608h44m58s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 1608h44m58s
CI/CD Pipeline / Deploy Production (push) Failing after 1608h44m56s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1608h44m56s
CI/CD Pipeline / Frontend Lint (push) Has been skipped
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1609h16m30s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 1m20s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1608h44m54s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1608h44m58s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 1608h44m58s
CI/CD Pipeline / Deploy Production (push) Failing after 1608h44m56s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1608h44m56s
CI/CD Pipeline / Frontend Lint (push) Has been skipped
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1609h16m30s
fix(ci): 修复 Validate job — black 格式化 + isort 排序 + .cache 排除 + celery mock 路径修复
This commit was merged in pull request #217.
This commit is contained in:
@@ -314,7 +314,9 @@ class UnifiedRenderService:
|
||||
# 有效时长 = min(指定时长, 实际时长);若均未设置则跳过
|
||||
effective_duration = 0.0
|
||||
if clip.duration > 0:
|
||||
effective_duration = min(clip.duration, clip.actual_duration) if clip.actual_duration > 0 else clip.duration
|
||||
effective_duration = (
|
||||
min(clip.duration, clip.actual_duration) if clip.actual_duration > 0 else clip.duration
|
||||
)
|
||||
elif clip.actual_duration > 0:
|
||||
effective_duration = clip.actual_duration
|
||||
|
||||
|
||||
Reference in New Issue
Block a user