fixed repeats and multithreading. Needs refining
This commit is contained in:
parent
7af5811792
commit
e6cf1b6a5d
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user