From 8497eb17e6991d59fa33cb3714ae527ef0754b39 Mon Sep 17 00:00:00 2001 From: Karl Mathias Moberg Date: Mon, 15 Jan 2024 20:45:18 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Fix=20issue=20with=20duplicate=20en?= =?UTF-8?q?tries=20for=20board=20members.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index f41ac80..bbd2b91 100644 --- a/main.py +++ b/main.py @@ -302,8 +302,9 @@ def updateLastMessage(uid, messageType, time): logger.info("Removed id 11 successfully!") # Add the 'Board Member' tag - userGroupsWebsite.append('17401') - logger.info(f"Sucessfully added id 17401 to user {userInfoWebsite['data']['cid']}") + if '17401' not in userGroupsWebsite: + userGroupsWebsite.append('17401') + logger.info(f"Sucessfully added id 17401 to user {userInfoWebsite['data']['cid']}") # Ignore server groups for 'KM' # Check if user is KM and if he has the 'I1' tag if so, remove it and add C3.