Commit f690145c authored by wanli's avatar wanli

update

parent 2556f5c6
...@@ -39,7 +39,7 @@ class AppsManager(object): ...@@ -39,7 +39,7 @@ class AppsManager(object):
# result = Apps.select(app_name=data.get("app_name"), is_delete=False).count() # result = Apps.select(app_name=data.get("app_name"), is_delete=False).count()
# if result < 1: # if result < 1:
# return False, "app_name has been exists." # return False, "app_name has been exists."
p = data algorithm = data.get("algorithm")
data.update({ data.update({
'app_icon': data["app_icon"].replace(config.get("UPLOAD_PATH"), ""), 'app_icon': data["app_icon"].replace(config.get("UPLOAD_PATH"), ""),
'create_by': editor, 'create_by': editor,
...@@ -77,8 +77,8 @@ class AppsManager(object): ...@@ -77,8 +77,8 @@ class AppsManager(object):
if editor.role == "administrator" or editor.role == "community": if editor.role == "administrator" or editor.role == "community":
params['algorithm'] = "h" params['algorithm'] = "h"
if p.get("algorithm"): if algorithm:
params['algorithm'] = p.get("algorithm") params['algorithm'] = algorithm
epk = EpkApp(**params) epk = EpkApp(**params)
app_info = epk.pack() app_info = epk.pack()
......
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