Skip to content

Commit

Permalink
Improving handling url params issue #10
Browse files Browse the repository at this point in the history
  • Loading branch information
jpatacz committed Mar 16, 2022
1 parent d4ceded commit e51c26a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions skillcorner/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,12 @@ def _skillcorner_request(self, url, method, params, paginated_request, output_fo

if not params:
params = {}
else:
for key, value in params.items():
if value==True:
params[key] = 1
elif False in params.values():
params[key] = 2
data = {}

if paginated_request:
Expand Down

0 comments on commit e51c26a

Please sign in to comment.