From f6dc104229c4220a9fd36ce8dd0a948650c8b531 Mon Sep 17 00:00:00 2001 From: listeng Date: Wed, 29 Mar 2023 20:11:35 +0800 Subject: [PATCH] fix field name "filters" in get_approval_info (#760) --- wechatpy/work/client/api/oa.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wechatpy/work/client/api/oa.py b/wechatpy/work/client/api/oa.py index 3afb1a90..7ee5d49f 100644 --- a/wechatpy/work/client/api/oa.py +++ b/wechatpy/work/client/api/oa.py @@ -37,7 +37,7 @@ def get_approval_info(self, start_time, end_time, cursor, size=100, filters=None :return: """ data = optionaldict( - {"starttime": str(start_time), "endtime": str(end_time), "cursor": cursor, "size": size, "filter": filters} + {"starttime": str(start_time), "endtime": str(end_time), "cursor": cursor, "size": size, "filters": filters} ) return self._post("oa/getapprovalinfo", data=data)