Skip to content

Commit

Permalink
✨ Fix issue with duplicate entries for board members.
Browse files Browse the repository at this point in the history
  • Loading branch information
kmoberg committed Jan 15, 2024
1 parent b0f03e9 commit 8497eb1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8497eb1

Please sign in to comment.