From 4384cf4ed1898d440369eacde24ff909a40b25c8 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 4 Aug 2021 01:06:16 +0200 Subject: [PATCH] remove duplicate --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index f6945df..1d6209b 100644 --- a/main.py +++ b/main.py @@ -44,7 +44,7 @@ def getFriendsID(api, users: list): liste = [] for user in users: liste.extend(api.friends_ids(user)) - return liste + return list(set(liste)) def seniority(date: str): datetimeObject = datetime.strptime(date, '%a %b %d %H:%M:%S +0000 %Y') # Convert String format to datetime format