diff options
author | Kyomotoi <[email protected]> | 2021-07-31 16:21:23 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2021-07-31 16:21:23 +0800 |
commit | 1d54ec291f2c25cc01f24d0d0163d0bf889457fd (patch) | |
tree | 251004df3f659f79b96b9abce59cc1140e24498c /ATRI/plugins/console/view.py | |
parent | beb16b60fe4d8586436f5ada5fdabb6db23f5a29 (diff) | |
parent | 36d26d1dc61c36b4601aaf75e148060c5bcb98a7 (diff) | |
download | ATRI-1d54ec291f2c25cc01f24d0d0163d0bf889457fd.tar.gz ATRI-1d54ec291f2c25cc01f24d0d0163d0bf889457fd.tar.bz2 ATRI-1d54ec291f2c25cc01f24d0d0163d0bf889457fd.zip |
Merge branch 'main' of https://github.com/Kyomotoi/ATRI into main
Diffstat (limited to 'ATRI/plugins/console/view.py')
-rw-r--r-- | ATRI/plugins/console/view.py | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/ATRI/plugins/console/view.py b/ATRI/plugins/console/view.py index dde3533..9de39b4 100644 --- a/ATRI/plugins/console/view.py +++ b/ATRI/plugins/console/view.py @@ -8,22 +8,13 @@ driver = ATRI.driver() async def handle_is_connect(): data = Console().is_connect() - return { - "status": 200, - "is_connect": data - } + return {"status": 200, "is_connect": data} async def handle_status(): - return { - "status": 200, - "message": info_msg - } + return {"status": 200, "message": info_msg} async def handle_dashboard_info(): data = Console().load_data() - return { - "status": 200, - "data": data - } + return {"status": 200, "data": data} |