Commit cfe493bf authored by wanli's avatar wanli

update

parent 6ddb74b0
...@@ -84,7 +84,7 @@ class BuildLogsManager(object): ...@@ -84,7 +84,7 @@ class BuildLogsManager(object):
flush() flush()
commit() commit()
epk_path = os.sep.join([target_dir.replace(config.get("UPLOAD_PATH"), ""), "{}.epk".format(dir_format)]).replace('\\', '/') epk_path = os.sep.join([target_dir.replace(config.get("UPLOAD_PATH"), ""), "{}.epk".format(app.app_name)]).replace('\\', '/')
app_info['md5'] = str(app_info['md5']) app_info['md5'] = str(app_info['md5'])
result = BuildLogs(app=app, app_path=epk_path, app_info=app_info, create_by=editor, create_at=datetime.now(), update_by=editor, update_at=datetime.now()) result = BuildLogs(app=app, app_path=epk_path, app_info=app_info, create_by=editor, create_at=datetime.now(), update_by=editor, update_at=datetime.now())
......
...@@ -104,7 +104,7 @@ class DownloadManager(object): ...@@ -104,7 +104,7 @@ class DownloadManager(object):
if tmp.get("app_build_log"): if tmp.get("app_build_log"):
epk_path = convert_url_to_local_path(tmp.get("app_build_log")[0].app_path) epk_path = convert_url_to_local_path(tmp.get("app_build_log")[0].app_path)
if not os.path.exists(epk_path): if not os.path.exists(epk_path):
return False, "epk file not found" return False, "epk file not found"
......
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