chore: fix N806 lint - rename _RESAMPLE_VIDEO_INTERVAL to lowercase

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-14 06:11:01 -04:00
parent 7c7ad67d81
commit cd0805aad6
+3 -3
View File
@@ -330,7 +330,7 @@ async def _process_one_slot(
返回: 返回:
GeneratedQuestion(通过全部检查)或 None(重出耗尽)。 GeneratedQuestion(通过全部检查)或 None(重出耗尽)。
""" """
_RESAMPLE_VIDEO_INTERVAL = 1 resample_video_interval = 1
async with sem: async with sem:
strategy = get_strategy(slot.task_type) strategy = get_strategy(slot.task_type)
@@ -341,8 +341,8 @@ async def _process_one_slot(
current_video_id = slot.video_id current_video_id = slot.video_id
for attempt in range(1, config.retry_limit + 1): for attempt in range(1, config.retry_limit + 1):
# 连续失败 _RESAMPLE_VIDEO_INTERVAL 次后换视频 # 连续失败 resample_video_interval 次后换视频
if attempt > 1 and (attempt - 1) % _RESAMPLE_VIDEO_INTERVAL == 0 and all_trees: if attempt > 1 and (attempt - 1) % resample_video_interval == 0 and all_trees:
alt_ids = [v for v in all_trees if v != current_video_id] alt_ids = [v for v in all_trees if v != current_video_id]
if alt_ids: if alt_ids:
current_video_id = rng.choice(alt_ids) current_video_id = rng.choice(alt_ids)