From e6cf1b6a5da5daf141f42702c29735959b5e81fb Mon Sep 17 00:00:00 2001 From: spbeach46 Date: Sun, 27 Dec 2020 21:13:12 -0700 Subject: [PATCH] fixed repeats and multithreading. Needs refining --- ebay_api.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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()