mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -402,6 +402,7 @@ def stopPort():
|
||||
return 'status missing'
|
||||
|
||||
data = pftpStop(args['username'])
|
||||
pftpReload()
|
||||
conn = pftpDB()
|
||||
conn.where('id=?', (int(args['id']),)).save(
|
||||
'status', (args['status'],))
|
||||
@@ -423,6 +424,7 @@ def startPort():
|
||||
return 'status missing'
|
||||
|
||||
data = pftpStart(args['username'])
|
||||
pftpReload()
|
||||
conn = pftpDB()
|
||||
conn.where('id=?', (int(args['id']),)).save(
|
||||
'status', (args['status'],))
|
||||
|
||||
Reference in New Issue
Block a user