mirror of
https://github.com/fastogt/fastocloud_admin.git
synced 2025-03-09 23:38:52 +00:00
Country
This commit is contained in:
parent
c22b1b1a08
commit
40eb16a3be
1 changed files with 2 additions and 1 deletions
|
@ -51,8 +51,9 @@ if __name__ == '__main__':
|
|||
myresult = mycursor.fetchall()
|
||||
|
||||
for sql_entry in myresult:
|
||||
country = sql_entry['forced_country'] if sql_entry['forced_country'] else 'US'
|
||||
new_user = SubscriberUser.make_subscriber(email=sql_entry['username'], password=sql_entry['password'],
|
||||
country=sql_entry['forced_country'])
|
||||
country=country)
|
||||
new_user.status = SubscriberUser.Status.ACTIVE
|
||||
dev = Device(name='Xtream', max_connections=sql_entry['max_connections'])
|
||||
new_user.add_device(dev)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue