dict fix on pycli
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…
Reference in New Issue