fixed repeats and multithreading. Needs refining

This commit is contained in:
spbeach46 2020-12-27 21:13:12 -07:00
parent 7af5811792
commit e6cf1b6a5d

View File

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