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
d8765d5f
Commit
d8765d5f
authored
Apr 21, 2021
by
wanli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
60248377
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
backend/view/api.py
backend/view/api.py
+1
-5
No files found.
backend/view/api.py
View file @
d8765d5f
...
...
@@ -11,7 +11,6 @@ from flask import Blueprint, request, redirect, url_for, json, Response, send_fi
from
werkzeug.utils
import
secure_filename
from
app
import
config
,
signalManager
from
app.setting
import
conf
from
fullstack.login
import
Auth
from
fullstack.response
import
ResponseCode
,
response_result
from
fullstack.validation
import
validate_schema
...
...
@@ -21,9 +20,6 @@ logger = logging.getLogger(__name__)
api
=
Blueprint
(
"api"
,
__name__
,
url_prefix
=
"/api/v1/
%
s"
%
config
[
'NAME'
])
logger
.
info
(
config
.
get
(
"UPLOAD_PATH"
))
logger
.
info
(
os
.
path
.
abspath
(
config
.
get
(
"UPLOAD_PATH"
)))
def
stopApp
():
fpath
=
os
.
sep
.
join
([
os
.
getcwd
(),
"restart.json"
])
with
open
(
fpath
,
"w+"
)
as
f
:
...
...
@@ -112,7 +108,7 @@ def application_build():
files
=
[]
data
=
request
.
schema_data
dt
=
datetime
.
now
()
.
strftime
(
"
%
Y
%
m
%
d
%
H
%
M
%
S"
)
upload_path
=
os
.
sep
.
join
([
config
[
"UPLOAD_PATH"
],
config
[
"
UPLOAD_DIR"
],
conf
.
get
(
'uploads'
,
'temp_dir'
)
,
str
(
data
[
'access_key'
]),
dt
])
upload_path
=
os
.
sep
.
join
([
config
[
"UPLOAD_PATH"
],
config
[
"
TEMP_DIR"
]
,
str
(
data
[
'access_key'
]),
dt
])
if
not
os
.
path
.
exists
(
upload_path
):
os
.
makedirs
(
upload_path
)
for
f
in
request
.
files
.
getlist
(
'binfiles'
):
...
...
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