完成 Ruff 全量清理
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user