Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
evm-store
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanli
evm-store
Commits
136bfe01
Commit
136bfe01
authored
Mar 16, 2021
by
wanli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
cfe493bf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
5 deletions
+2
-5
backend/controller/apps_manager.py
backend/controller/apps_manager.py
+0
-3
backend/controller/build_logs_manager.py
backend/controller/build_logs_manager.py
+1
-1
backend/model/annex.py
backend/model/annex.py
+1
-1
No files found.
backend/controller/apps_manager.py
View file @
136bfe01
...
...
@@ -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
())
...
...
backend/controller/build_logs_manager.py
View file @
136bfe01
...
...
@@ -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."
...
...
backend/model/annex.py
View file @
136bfe01
...
...
@@ -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...
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment