Skip to content

Commit

Permalink
Revert "DIRTY HACK TO MAKE ORDERS WORK ON v3"
Browse files Browse the repository at this point in the history
This reverts commit c71d4a6
  • Loading branch information
Bobspadger committed Aug 21, 2019
1 parent c71d4a6 commit 2399e0f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bigcommerce/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@ def _run_method(self, method, url, data=None, query=None, headers=None):

# Support v3
if self.api_path and 'v3' in self.api_path:
if url is 'orders':
self.api_path = self.api_path.replace('v3', 'v2')
else:
url = 'catalog/{}'.format(url)
url = 'catalog/{}'.format(url)

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

0 comments on commit 2399e0f

Please sign in to comment.