Skip to content

Commit 952aae1

Browse files
committed
Fix for params already being a dict
1 parent 7f100fd commit 952aae1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

socketdev/repos/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def post(self, org_slug: str, **kwargs) -> dict:
131131
return {}
132132

133133
path = "orgs/" + org_slug + "/repos"
134-
response = self.api.do_request(path=path, method="POST", payload=params.__dict__)
134+
response = self.api.do_request(path=path, method="POST", payload=params)
135135

136136
if response.status_code == 200:
137137
result = response.json()
@@ -150,7 +150,7 @@ def update(self, org_slug: str, repo_name: str, **kwargs) -> dict:
150150
return {}
151151

152152
path = f"orgs/{org_slug}/repos/{repo_name}"
153-
response = self.api.do_request(path=path, method="POST", payload=params.__dict__)
153+
response = self.api.do_request(path=path, method="POST", payload=params)
154154

155155
if response.status_code == 200:
156156
result = response.json()

socketdev/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.0.5"
1+
__version__ = "2.0.6"

0 commit comments

Comments
 (0)