diff --git a/ebay_api.py b/ebay_api.py index f789565..0b46b43 100644 --- a/ebay_api.py +++ b/ebay_api.py @@ -70,8 +70,9 @@ class FindingApi: if item not in itemid_results_list: itemid_results_list.append(item['itemId'][0]) - item_id_results = [','.join(itemid_results_list[n:n+20]) for n in list(range(0, - len(itemid_results_list), 20))] + item_id_results = list(set(itemid_results_list)) + item_id_results = [','.join(itemid_results_list[n:n+20]) for n in list(range(0, + len(itemid_results_list), 20))] return item_id_results ## TODO instead of running through multiple try except loops try to implement set methods for efficiency and ease. Remember symmetric_difference, difference, intersection, set()