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
7eb7c3d9
Commit
7eb7c3d9
authored
Mar 24, 2021
by
wanli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
ca408f41
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
backend/app/setting.py
backend/app/setting.py
+4
-0
backend/controller/apps_manager.py
backend/controller/apps_manager.py
+8
-0
No files found.
backend/app/setting.py
View file @
7eb7c3d9
...
@@ -25,6 +25,10 @@ config = dict(
...
@@ -25,6 +25,10 @@ config = dict(
},
},
TABLE_PREFIX
=
'evm_store_'
,
TABLE_PREFIX
=
'evm_store_'
,
MD5_SALT
=
"EhuqUkwV"
,
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_PATH
=
os
.
getcwd
(),
UPLOAD_DIR
=
conf
.
get
(
'uploads'
,
'upload_dir'
),
UPLOAD_DIR
=
conf
.
get
(
'uploads'
,
'upload_dir'
),
TEMPLATE_PATH
=
os
.
path
.
join
(
os
.
getcwd
(),
"static"
),
TEMPLATE_PATH
=
os
.
path
.
join
(
os
.
getcwd
(),
"static"
),
...
...
backend/controller/apps_manager.py
View file @
7eb7c3d9
...
@@ -34,7 +34,15 @@ class AppsManager(object):
...
@@ -34,7 +34,15 @@ class AppsManager(object):
def
add
(
self
,
user
,
data
):
def
add
(
self
,
user
,
data
):
with
db_session
:
with
db_session
:
<<<<<<<
Updated
upstream
editor
=
User
.
get
(
id
=
user
)
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
:
if
not
editor
:
return
False
,
"current user is not exists"
return
False
,
"current user is not exists"
...
...
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