main.py: regenerate subscriber_info array after creating subscriber

This commit is contained in:
Antoine Martin 2024-06-07 16:49:58 -04:00
parent f37241d892
commit e691aff300
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -140,6 +140,7 @@ for user_info in authentik_get_users():
except Exception as e: except Exception as e:
print('> Failed to find username, creating subscriber') print('> Failed to find username, creating subscriber')
create_resp = listmonk_create_subscriber(user_info['email'], user_info['username'], status=user_active) 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) print(create_resp)
# checks if user email matches subscriber email # checks if user email matches subscriber email