diff options
author | Lint Action <noreply@github.com> | 2022-11-04 02:45:05 +0000 |
---|---|---|
committer | Lint Action <noreply@github.com> | 2022-11-04 02:45:05 +0000 |
commit | b127b3e7704750ee23a92613efcc4ee11c829c41 (patch) | |
tree | 5a12a58aedb033468c5100781f66a6e41f725a18 /ATRI/plugins/console/driver | |
parent | 5a245fd7132b5d4da13ee83bd0eadb91d41735b6 (diff) | |
download | ATRI-b127b3e7704750ee23a92613efcc4ee11c829c41.tar.gz ATRI-b127b3e7704750ee23a92613efcc4ee11c829c41.tar.bz2 ATRI-b127b3e7704750ee23a92613efcc4ee11c829c41.zip |
:rotating_light: 自动进行代码格式化
Diffstat (limited to 'ATRI/plugins/console/driver')
-rw-r--r-- | ATRI/plugins/console/driver/api.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ATRI/plugins/console/driver/api.py b/ATRI/plugins/console/driver/api.py index 4b78906..4319954 100644 --- a/ATRI/plugins/console/driver/api.py +++ b/ATRI/plugins/console/driver/api.py @@ -79,7 +79,9 @@ def block_list_info(_=Depends(http_author)): return {"status": status.HTTP_200_OK, "data": get_block_list()} -def edit_block_list(enabled: str, user_id: str = str(), group_id: str = str(), _=Depends(http_author)): +def edit_block_list( + enabled: str, user_id: str = str(), group_id: str = str(), _=Depends(http_author) +): return { "status": status.HTTP_200_OK, "data": _edit_block_list(bool(int(enabled)), user_id, group_id), |