mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP fixes
This commit is contained in:
parent
8e962c0c59
commit
251fdeb69e
@ -217,7 +217,7 @@ class APICallMixin:
|
|||||||
groups.append(f'{key}={",".join([str(a) for a in val])}')
|
groups.append(f'{key}={",".join([str(a) for a in val])}')
|
||||||
return f'?{"&".join(groups)}'
|
return f'?{"&".join(groups)}'
|
||||||
|
|
||||||
def api_call(self, endpoint, method: str='GET', url_args=None, data=None, headers=None, simple_response: bool = True):
|
def api_call(self, endpoint, method: str = 'GET', url_args=None, data=None, headers=None, simple_response: bool = True):
|
||||||
if url_args:
|
if url_args:
|
||||||
endpoint += self.api_build_url_args(url_args)
|
endpoint += self.api_build_url_args(url_args)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user