Commit d2207d93 authored by wanli's avatar wanli

update

parent c90aac8c
......@@ -117,7 +117,7 @@ class BuildLogsManager(object):
result = BuildLogs.select().where(app=app).order_by(desc(BuildLogs.create_at)).first()
if result:
result = result.to_dict(only=["uuid", "app_path"])
result.update({ "app_name": app.app_name, "app_path": os.path.normpath(os.sep.join(["uploads", result["app_path"]])) })
result.update({ "app_name": app.app_name })
return result, "get build logs {}.".format("success" if result else "no data")
def getList(self, user, data):
......
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