Skip to content

Commit 5bb3b50

Browse files
committed
Remove repeated item_ids
1 parent 5f09939 commit 5bb3b50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

amazon_paapi/helpers/arguments.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ def get_items_ids(items: Union[str, List[str]]) -> List[str]:
1818
items_ids = [get_asin(x.strip()) for x in items]
1919

2020
if items_ids:
21-
return items_ids
22-
else:
23-
raise AsinNotFoundException('No ASIN codes have been found.')
21+
return list(set(items_ids))
22+
23+
raise AsinNotFoundException('No ASIN codes have been found.')
2424

2525

2626
def check_search_args(**kwargs):

0 commit comments

Comments
 (0)