Commit d8765d5f authored by wanli's avatar wanli

update

parent 60248377
......@@ -11,7 +11,6 @@ from flask import Blueprint, request, redirect, url_for, json, Response, send_fi
from werkzeug.utils import secure_filename
from app import config, signalManager
from app.setting import conf
from fullstack.login import Auth
from fullstack.response import ResponseCode, response_result
from fullstack.validation import validate_schema
......@@ -21,9 +20,6 @@ logger = logging.getLogger(__name__)
api = Blueprint("api", __name__, url_prefix="/api/v1/%s" % config['NAME'])
logger.info(config.get("UPLOAD_PATH"))
logger.info(os.path.abspath(config.get("UPLOAD_PATH")))
def stopApp():
fpath = os.sep.join([os.getcwd(), "restart.json"])
with open(fpath, "w+") as f:
......@@ -112,7 +108,7 @@ def application_build():
files = []
data = request.schema_data
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])
upload_path = os.sep.join([config["UPLOAD_PATH"], config["TEMP_DIR"], str(data['access_key']), dt])
if not os.path.exists(upload_path):
os.makedirs(upload_path)
for f in request.files.getlist('binfiles'):
......
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