From 4875db08e8b3752e37179d868f64bc5f377dfcde Mon Sep 17 00:00:00 2001 From: jxxghp Date: Fri, 20 Oct 2023 12:48:43 +0800 Subject: [PATCH] fix #927 --- app/command.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/command.py b/app/command.py index cdfdd01d..3313814b 100644 --- a/app/command.py +++ b/app/command.py @@ -103,7 +103,10 @@ class Command(metaclass=Singleton): "id": "subscribe_search", "type": "scheduler", "description": "搜索订阅", - "category": "订阅" + "category": "订阅", + "kwargs": { + 'state': 'R' + } }, "/subscribe_delete": { "func": SubscribeChain().remote_delete, @@ -230,7 +233,7 @@ class Command(metaclass=Singleton): ) # 执行定时任务 - self.scheduler.start(job_id=command.get("id")) + self.scheduler.start(job_id=command.get("id"), **command.get("kwargs", {})) if userid: self.chain.post_message(