1
0
Fork 0
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:
topilski 2019-09-20 01:24:33 -04:00
parent ddfac8060c
commit fd12df4f99
4 changed files with 5 additions and 5 deletions

@ -1 +1 @@
Subproject commit 9094550d62a0968a1114e5ee56de63623f718828
Subproject commit fee7d4ef73c1282591bbce3f8a303f2384fb2d9b

View file

@ -1,6 +1,6 @@
{% extends 'layouts/layout_home.html' %}
{% block title %}
Activate service | {{ config['PUBLIC_CONFIG'].site.title }}
Providers | {{ config['PUBLIC_CONFIG'].site.title }}
{% endblock %}
{% block content %}

View file

@ -1,6 +1,6 @@
{% extends 'layouts/layout_home.html' %}
{% block title %}
Activate service | {{ config['PUBLIC_CONFIG'].site.title }}
Subscribers | {{ config['PUBLIC_CONFIG'].site.title }}
{% endblock %}
{% block content %}

View file

@ -45,7 +45,7 @@ if __name__ == '__main__':
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)
@ -61,7 +61,7 @@ if __name__ == '__main__':
exp_date = sql_entry['exp_date']
if 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)
# save
new_user.add_server(server)