Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README update for VDuda v3 update #86

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
5 changes: 4 additions & 1 deletion bigcommerce/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ def _run_method(self, method, url, data=None, query=None, headers=None):

# Support v3
if self.api_path and 'v3' in self.api_path:
url = 'catalog/{}'.format(url)
if url is 'orders':
Copy link

@ThePsyjo ThePsyjo Oct 2, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will never be True, use == instead of is.

self.api_path = self.api_path.replace('v3', 'v2')
else:
url = 'catalog/{}'.format(url)

# make full path if not given
if url and url[:4] != "http":
Expand Down