完成 Ruff 全量清理

This commit is contained in:
yml2213
2026-08-31 10:55:44 +08:00
parent 840af3108e
commit 09ab80e062
68 changed files with 323 additions and 291 deletions
+7 -4
View File
@@ -267,10 +267,13 @@ class GoodsMixin:
if self.payload.get("scheduled_at") and scheduled_at is None:
self._mark_task(worker_db, task, "failed", "定时兑换时间格式无效")
return
if scheduled_at and scheduled_at.timestamp() > time.time():
if not self._wait_until(scheduled_at, uid):
self._mark_task(worker_db, task, "stopped", "兑换任务已停止")
return
if (
scheduled_at
and scheduled_at.timestamp() > time.time()
and not self._wait_until(scheduled_at, uid)
):
self._mark_task(worker_db, task, "stopped", "兑换任务已停止")
return
client: Any = HuyaHttpClient(
logger=lambda msg: self._push_log("info", f"[{uid}] {msg}")