mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 09:10:30 +08:00
lint fix
This commit is contained in:
parent
014884f9ac
commit
d92e2e2d1b
@ -47,7 +47,7 @@ def _system_task(method: Callable) -> Callable:
|
||||
def _json(result: Optional[Dict]=None, status: int=200) -> aiohttp.web.Response:
|
||||
return aiohttp.web.Response(
|
||||
text=json.dumps({
|
||||
"ok": (True if status == 200 else False),
|
||||
"ok": (status == 200),
|
||||
"result": (result or {}),
|
||||
}, sort_keys=True, indent=4),
|
||||
status=status,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user