Adapted for use a python virtualenv
This commit is contained in:
parent
711893b7df
commit
c5a9654f8b
6 changed files with 12 additions and 7 deletions
|
|
@ -83,7 +83,7 @@ class ServerTask(Task):
|
|||
arr_server=serverdb.set_conditions('WHERE ip=%s', [self.server]).select_a_row_where()
|
||||
|
||||
if arr_server:
|
||||
dbserver.insert({'server_id': arr_server['id']})
|
||||
dbserver.insert({'server_id': arr_server['id'], 'access_ip': self.data['ip']})
|
||||
|
||||
return True
|
||||
|
||||
|
|
@ -122,6 +122,9 @@ class ServerTask(Task):
|
|||
error=True
|
||||
|
||||
if 'access_localhost' in post:
|
||||
|
||||
self.data['ip']=''
|
||||
|
||||
ip_check=IpField('ip')
|
||||
|
||||
ip_host=post['access_localhost'].strip()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue