mirror of
https://github.com/fastogt/fastocloud_admin.git
synced 2025-03-09 23:38:52 +00:00
Without max connections
This commit is contained in:
parent
ddfac8060c
commit
fd12df4f99
4 changed files with 5 additions and 5 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit 9094550d62a0968a1114e5ee56de63623f718828
|
Subproject commit fee7d4ef73c1282591bbce3f8a303f2384fb2d9b
|
|
@ -1,6 +1,6 @@
|
||||||
{% extends 'layouts/layout_home.html' %}
|
{% extends 'layouts/layout_home.html' %}
|
||||||
{% block title %}
|
{% block title %}
|
||||||
Activate service | {{ config['PUBLIC_CONFIG'].site.title }}
|
Providers | {{ config['PUBLIC_CONFIG'].site.title }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{% extends 'layouts/layout_home.html' %}
|
{% extends 'layouts/layout_home.html' %}
|
||||||
{% block title %}
|
{% block title %}
|
||||||
Activate service | {{ config['PUBLIC_CONFIG'].site.title }}
|
Subscribers | {{ config['PUBLIC_CONFIG'].site.title }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
|
@ -45,7 +45,7 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
mycursor = mydb.cursor(dictionary=True)
|
mycursor = mydb.cursor(dictionary=True)
|
||||||
|
|
||||||
sql = 'SELECT username,password,created_at,exp_date,max_connections FROM users'
|
sql = 'SELECT username,password,created_at,exp_date FROM users'
|
||||||
|
|
||||||
mycursor.execute(sql)
|
mycursor.execute(sql)
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ if __name__ == '__main__':
|
||||||
exp_date = sql_entry['exp_date']
|
exp_date = sql_entry['exp_date']
|
||||||
if exp_date:
|
if exp_date:
|
||||||
new_user.exp_date = datetime.fromtimestamp(exp_date)
|
new_user.exp_date = datetime.fromtimestamp(exp_date)
|
||||||
dev = Device(name='Xtream', max_connections=sql_entry['max_connections'])
|
dev = Device(name='Xtream')
|
||||||
new_user.add_device(dev)
|
new_user.add_device(dev)
|
||||||
# save
|
# save
|
||||||
new_user.add_server(server)
|
new_user.add_server(server)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue