main.py: remove slug notes

This commit is contained in:
Antoine Martin 2024-03-05 16:20:25 -05:00
parent 2f2d26fd29
commit f37241d892
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -167,7 +167,6 @@ for user_info in authentik_get_users():
# matches apps to list_id
for consent_info in authentik_get_user_consent(user_info['pk']):
print(consent_info['application']['slug'])
list_info = listmonk_get_list('app-' + consent_info['application']['slug'])
groups_id.append(list_info['id'])
@ -186,5 +185,3 @@ for user_info in authentik_get_users():
if id not in groups_id:
print('> User groups check failed, updating')
set_resp = listmonk_set_list([subscriber_info['id']], "remove", [id], status="")