1
0
Fork 0
mirror of https://github.com/fastogt/fastocloud_admin.git synced 2025-03-09 23:38:52 +00:00
This commit is contained in:
topilski 2019-09-22 08:10:33 -04:00
parent 47a48409ab
commit 16d70b566a

View file

@ -9,7 +9,9 @@ def import_resellers_to_server(db, server: ServiceSettings):
sql_providers = cursor.fetchall() sql_providers = cursor.fetchall()
for sql_entry in sql_providers: for sql_entry in sql_providers:
new_user = ProviderUser.make_provider(email=sql_entry['email'], password=sql_entry['email'], country='US') email = sql_entry['email']
password = sql_entry['email']
new_user = ProviderUser.make_provider(email=email, password=password, country='US')
new_user.status = ProviderUser.Status.ACTIVE new_user.status = ProviderUser.Status.ACTIVE
new_user.save() new_user.save()