dict fix on pycli
This commit is contained in:
parent
7674c28999
commit
378306892f
@ -77,7 +77,7 @@ def InvokeTxt(path: str, method: str, body) -> str:
|
||||
|
||||
def InvokeJSON(path: str, method: str, body) -> dict:
|
||||
d = body.__dict__
|
||||
return json.loads(InvokeTxt(path, method, body))
|
||||
return json.loads(InvokeTxt(path, method, d))
|
||||
|
||||
`, api.BasePath))
|
||||
b.WriteString("#endregion\n\n")
|
||||
|
Loading…
x
Reference in New Issue
Block a user