Skip to content

Commit

Permalink
Merge pull request man-c#26 from gkrasulya/master
Browse files Browse the repository at this point in the history
Fix __api_url_params method
  • Loading branch information
man-c authored Mar 30, 2021
2 parents 87e6ec2 + e2907c0 commit 9293b3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycoingecko/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __request(self, url):

def __api_url_params(self, api_url, params):
if params:
api_url += '?'
api_url += '&' if '?' in api_url else '?'
for key, value in params.items():
api_url += "{0}={1}&".format(key, value)
api_url = api_url[:-1]
Expand Down

0 comments on commit 9293b3b

Please sign in to comment.