Commit 7eb7c3d9 authored by wanli's avatar wanli

update

parent ca408f41
......@@ -25,6 +25,10 @@ config = dict(
},
TABLE_PREFIX='evm_store_',
MD5_SALT="EhuqUkwV",
<<<<<<< Updated upstream
=======
UPLOAD_SERVER="{}://{}:{}/".format(conf.get('uploads', 'protocol'), conf.get('uploads', 'host'), conf.get('uploads', 'port')),
>>>>>>> Stashed changes
UPLOAD_PATH=os.getcwd(),
UPLOAD_DIR=conf.get('uploads', 'upload_dir'),
TEMPLATE_PATH=os.path.join(os.getcwd(), "static"),
......
......@@ -34,7 +34,15 @@ class AppsManager(object):
def add(self, user, data):
with db_session:
<<<<<<< Updated upstream
editor = User.get(id=user)
=======
result = Apps.get(app_name=data.get("app_name"), is_delete=False)
if result:
return False, "app_name has been exists."
editor = User.get(id=request.current_user.get("id"))
>>>>>>> Stashed changes
if not editor:
return False, "current user is not exists"
......
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