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
b519feca
Commit
b519feca
authored
Jul 14, 2021
by
wanli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
def5af6e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
backend/controller/apps_manager.py
backend/controller/apps_manager.py
+6
-3
No files found.
backend/controller/apps_manager.py
View file @
b519feca
...
...
@@ -39,7 +39,7 @@ class AppsManager(object):
# result = Apps.select(app_name=data.get("app_name"), is_delete=False).count()
# if result < 1:
# return False, "app_name has been exists."
p
=
data
data
.
update
({
'app_icon'
:
data
[
"app_icon"
]
.
replace
(
config
.
get
(
"UPLOAD_PATH"
),
""
),
'create_by'
:
editor
,
...
...
@@ -56,6 +56,9 @@ class AppsManager(object):
epk_path
=
data
.
get
(
"epk_path"
)
data
.
pop
(
"epk_path"
)
if
data
.
get
(
"algorithm"
):
data
.
pop
(
"algorithm"
)
app
=
Apps
(
**
data
)
commit
()
...
...
@@ -74,8 +77,8 @@ class AppsManager(object):
if
editor
.
role
==
"administrator"
or
editor
.
role
==
"community"
:
params
[
'algorithm'
]
=
"h"
if
data
.
get
(
"algorithm"
):
params
[
'algorithm'
]
=
data
.
get
(
"algorithm"
)
if
p
.
get
(
"algorithm"
):
params
[
'algorithm'
]
=
p
.
get
(
"algorithm"
)
epk
=
EpkApp
(
**
params
)
app_info
=
epk
.
pack
()
...
...
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