pull/109/head
Mr Chen 7 years ago
parent 4fb4fb2af5
commit 013b51fbcb
  1. 2
      class/core/system_api.py
  2. 3
      route/dashboard.py

@ -596,7 +596,7 @@ class system_api:
public.execShell(
'unzip -o mdserver-web.zip -d ' + os.getcwd() + '/')
public.execShell('rm - rf mdserver - web.zip')
public.execShell('rm -rf mdserver-web.zip')
public.execShell('restart.sh')
print v_new_info

@ -22,13 +22,12 @@ dashboard = Blueprint('dashboard', __name__, template_folder='templates')
def test():
os = public.getOs()
print os
print(sys.platform)
return os
@dashboard.route("/")
def index():
print(sys.platform)
if session.has_key('code'):
print session['code']
return render_template('default/index.html')

Loading…
Cancel
Save