Appeared ability edit not whole config. just separate sections
Some new design
Improved Options
Bugs fixed
This commit is contained in:
Pavel Loginov
2019-09-20 09:42:19 +03:00
parent af6e7c97c0
commit 8ad92c1342
26 changed files with 589 additions and 170 deletions

View File

@@ -677,7 +677,7 @@ def select_options(**kwargs):
def update_options(option, id):
con, cur = create_db.get_cur()
sql = """ update options set
`option` = '%s',
options = '%s'
where id = '%s' """ % (option, id)
try:
cur.execute(sql)
@@ -1483,9 +1483,9 @@ if form.getvalue('newtoption'):
if form.getvalue('updateoption') is not None:
option = form.getvalue('updateoption')
id = form.getvalue('optionid')
id = form.getvalue('id')
print('Content-type: text/html\n')
if token is None or chanel is None or group is None:
if option is None or id is None:
print(error_mess)
else:
update_options(option, id)