Convert tabs to spaces

This commit is contained in:
David Todd 2016-03-24 14:40:29 -05:00
parent 02be8b52bd
commit 35e45e5e1a
No known key found for this signature in database
GPG Key ID: 48E847F18074C953

View File

@ -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)