mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
q
This commit is contained in:
@@ -7,7 +7,7 @@ import time
|
|||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
sys.path.append("core/class/")
|
sys.path.append("/class/core/")
|
||||||
reload(sys)
|
reload(sys)
|
||||||
sys.setdefaultencoding('utf8')
|
sys.setdefaultencoding('utf8')
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -4,7 +4,7 @@ import psutil
|
|||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
sys.path.append(os.getcwd() + "/class/")
|
sys.path.append(os.getcwd() + "/class/core/")
|
||||||
import public
|
import public
|
||||||
|
|
||||||
from flask import Flask, session
|
from flask import Flask, session
|
||||||
@@ -20,6 +20,7 @@ dashboard = Blueprint('dashboard', __name__, template_folder='templates')
|
|||||||
|
|
||||||
@dashboard.route("/")
|
@dashboard.route("/")
|
||||||
def index():
|
def index():
|
||||||
|
print session['code']
|
||||||
return render_template('default/index.html')
|
return render_template('default/index.html')
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user