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
f33137fd
Commit
f33137fd
authored
Mar 24, 2021
by
wanliofficial
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://47.105.117.50:2224/wanli/evm-store
parents
9715568c
2ae53411
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
0 deletions
+14
-0
backend/app/setting.py
backend/app/setting.py
+4
-0
backend/controller/apps_manager.py
backend/controller/apps_manager.py
+8
-0
backend/model/download.py
backend/model/download.py
+1
-0
backend/model/login_logs.py
backend/model/login_logs.py
+1
-0
No files found.
backend/app/setting.py
View file @
f33137fd
...
...
@@ -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"
),
...
...
backend/controller/apps_manager.py
View file @
f33137fd
...
...
@@ -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"
...
...
backend/model/download.py
View file @
f33137fd
...
...
@@ -15,6 +15,7 @@ class AppDownload(db.Entity):
uuid
=
Required
(
uuid
.
UUID
,
unique
=
True
,
default
=
uuid
.
uuid1
,
index
=
True
)
app
=
Optional
(
"Apps"
,
reverse
=
"app_download"
)
imei
=
Required
(
str
)
ip
=
Optional
(
str
)
address
=
Optional
(
str
)
download_at
=
Required
(
datetime
,
default
=
datetime
.
now
)
is_delete
=
Required
(
bool
,
default
=
False
)
...
...
backend/model/login_logs.py
View file @
f33137fd
...
...
@@ -14,6 +14,7 @@ class LoginLogs(db.Entity):
id
=
PrimaryKey
(
int
,
auto
=
True
)
uuid
=
Required
(
uuid
.
UUID
,
unique
=
True
,
default
=
uuid
.
uuid1
,
index
=
True
)
username
=
Optional
(
str
)
ip
=
Optional
(
str
)
address
=
Optional
(
str
)
create_at
=
Required
(
datetime
,
default
=
datetime
.
now
)
create_by
=
Optional
(
"User"
,
reverse
=
'login_logs_creater'
)
...
...
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