main.py: remove slug notes
This commit is contained in:
parent
2f2d26fd29
commit
f37241d892
1 changed files with 0 additions and 3 deletions
3
main.py
3
main.py
|
@ -167,7 +167,6 @@ for user_info in authentik_get_users():
|
||||||
|
|
||||||
# matches apps to list_id
|
# matches apps to list_id
|
||||||
for consent_info in authentik_get_user_consent(user_info['pk']):
|
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'])
|
list_info = listmonk_get_list('app-' + consent_info['application']['slug'])
|
||||||
groups_id.append(list_info['id'])
|
groups_id.append(list_info['id'])
|
||||||
|
|
||||||
|
@ -186,5 +185,3 @@ for user_info in authentik_get_users():
|
||||||
if id not in groups_id:
|
if id not in groups_id:
|
||||||
print('> User groups check failed, updating')
|
print('> User groups check failed, updating')
|
||||||
set_resp = listmonk_set_list([subscriber_info['id']], "remove", [id], status="")
|
set_resp = listmonk_set_list([subscriber_info['id']], "remove", [id], status="")
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue