mirror of
https://github.com/c0de-archive/ebay-testing.git
synced 2024-12-22 04:32:40 +00:00
Convert tabs to spaces
This commit is contained in:
parent
02be8b52bd
commit
35e45e5e1a
7
ebay.py
7
ebay.py
@ -32,7 +32,7 @@ def setDateRange(days=None, start=None, rangeType=None):
|
||||
else:
|
||||
try:
|
||||
rangeType = str(rangeType)
|
||||
# This shouldn't happen, but good to have a check out of the gates
|
||||
# This shouldn't happen, but you never know users
|
||||
except ValueError:
|
||||
rangeType = 'end'
|
||||
|
||||
@ -319,6 +319,7 @@ def glue(api, sellerList, dateRange={}):
|
||||
seller = getSeller(api, sellerList)
|
||||
if seller['error']['code'] == '0':
|
||||
sellerList = seller['apiResponse']
|
||||
print seller['apiResponse']
|
||||
seller = None # Unset any data we no-longer need - Saves on memory
|
||||
|
||||
items = getItems(api, sellerList)
|
||||
@ -345,7 +346,7 @@ try:
|
||||
api = Trading(domain=domain, appid=app_id, devid=dev_id, certid=crt_id, token=usr_token, config_file=None, debug=False, parellel=p)
|
||||
|
||||
# Example usage, returns a dict containing all items of interst (based on the functions above)
|
||||
itemData = glue(api=api, sellerList={'Pagination': {'EntriesPerPage':'100', 'PageNumber':'1'}}, dateRange=setDateRange(0, 'end'))
|
||||
itemData = glue(api=api, sellerList={'Pagination': {'EntriesPerPage':'1', 'PageNumber':'1'}}, dateRange=setDateRange())
|
||||
|
||||
# Store the itemIDs so that we can use them to check which ones were modified
|
||||
itemlist = []
|
||||
@ -355,3 +356,5 @@ try:
|
||||
|
||||
except ConnectionError as e:
|
||||
print(e)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user