From 844bd56a5bed1293329299c8b0562558a0d2d907 Mon Sep 17 00:00:00 2001 From: Kyomotoi Date: Fri, 1 Oct 2021 08:56:42 +0800 Subject: =?UTF-8?q?=F0=9F=90=9B=E2=9A=A1=EF=B8=8F=F0=9F=94=A5=20=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复: - `setu`、`saucenao`搜图时失败报错 更新: - 弃用`aiohttp`,改用`httpx` 删除: - 临时删除暂未完成的`console` --- ATRI/plugins/console/view.py | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 ATRI/plugins/console/view.py (limited to 'ATRI/plugins/console/view.py') diff --git a/ATRI/plugins/console/view.py b/ATRI/plugins/console/view.py deleted file mode 100644 index 9de39b4..0000000 --- a/ATRI/plugins/console/view.py +++ /dev/null @@ -1,20 +0,0 @@ -import ATRI -from ..status import info_msg -from .data_source import Console - - -driver = ATRI.driver() - - -async def handle_is_connect(): - data = Console().is_connect() - return {"status": 200, "is_connect": data} - - -async def handle_status(): - return {"status": 200, "message": info_msg} - - -async def handle_dashboard_info(): - data = Console().load_data() - return {"status": 200, "data": data} -- cgit v1.2.3