main.py: regenerate subscriber_info array after creating subscriber
This commit is contained in:
parent
f37241d892
commit
e691aff300
1 changed files with 1 additions and 0 deletions
1
main.py
1
main.py
|
@ -140,6 +140,7 @@ for user_info in authentik_get_users():
|
|||
except Exception as e:
|
||||
print('> Failed to find username, creating subscriber')
|
||||
create_resp = listmonk_create_subscriber(user_info['email'], user_info['username'], status=user_active)
|
||||
subscriber_info = listmonk_get_subscriber(user_info['username'])
|
||||
print(create_resp)
|
||||
|
||||
# checks if user email matches subscriber email
|
||||
|
|
Loading…
Reference in a new issue