Commit 31a8b1b3 authored by wanli's avatar wanli

update

parent a33e3966
......@@ -11,7 +11,7 @@ config = dict(
NAME='evm_store',
DEBUG=False,
HOST="127.0.0.1",
PORT=5002,
PORT=5000,
LOGIN_DISABLED=False,
MD5_SALT="EhuqUkwV",
SECRET_KEY='secret_key_EhuqUkwV',
......
......@@ -111,7 +111,7 @@ def application_build():
if request.method == 'POST' and 'binfiles' in request.files:
files = []
data = request.schema_data
dt = datetime.datetime.now().strftime("%Y%m%d%H%M%S")
dt = datetime.now().strftime("%Y%m%d%H%M%S")
upload_path = os.sep.join([config["UPLOAD_PATH"], config["UPLOAD_DIR"], conf.get('uploads', 'temp_dir'), str(data['access_key']), dt])
if not os.path.exists(upload_path):
os.makedirs(upload_path)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment