Commit 136bfe01 authored by wanli's avatar wanli

update

parent cfe493bf
......@@ -55,9 +55,6 @@ class AppsManager(object):
result = Apps(**data)
commit()
icon.app = result
commit()
if result:
for a in app_files:
Annex(app=result, title=a.get("filename"), path=a.get("filepath"), size=a.get("filesize"), create_by=editor, create_at=datetime.now(), update_by=editor, update_at=datetime.now())
......
......@@ -112,7 +112,7 @@ class BuildLogsManager(object):
result.update({ "app_name": app.app_name })
return result, "get build_logs {}.".format("success" if result else "no data")
def getList(self, data):
def getList(self, user, data):
if not data or len(data) <= 0:
return False, 0, "parameters can not be null."
......
......@@ -14,7 +14,7 @@ class Annex(db.Entity):
id = PrimaryKey(int, auto=True)
uuid = Required(uuid.UUID, unique=True, default=uuid.uuid1, index=True)
app = Optional("Apps", reverse="app_annex")
app_icon = Optional("Apps", reverse="app_icon", cascade_delete=True)
app_icon = Optional("Apps", reverse="app_icon")
title = Required(str, max_len=200) # 文件名
path = Required(LongStr) # 文件路径
type = Required(int, default=0) # 文件类型 PNG/JPG/GIF/MP3/MP4/DOCX/XLSX/PPT/PDF...
......
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