Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DA-Platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
文档服务地址:
http://47.92.0.57:3000/
周报索引地址:
http://47.92.0.57:3000/s/NruNXRYmV
Open sidebar
Berlin
DA-Platform
Commits
d7250f00
Commit
d7250f00
authored
Jul 05, 2020
by
李景熙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改删除文件变量命名
parent
3821a229
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
uploadDownload.py
DAPlatform/views/uploadDownload.py
+1
-1
No files found.
DAPlatform/views/uploadDownload.py
View file @
d7250f00
...
@@ -45,7 +45,7 @@ def download(fileName):
...
@@ -45,7 +45,7 @@ def download(fileName):
@uploadDownload.route
(
'/delFile'
,
methods
=
[
'POST'
])
@uploadDownload.route
(
'/delFile'
,
methods
=
[
'POST'
])
def
delFile
():
def
delFile
():
data
=
request
.
get_json
(
silent
=
True
)
data
=
request
.
get_json
(
silent
=
True
)
fileName
=
data
[
'filename
'
]
fileName
=
data
[
'url
'
]
file_dir
=
os
.
path
.
join
(
basedir
,
UPLOAD_FOLDER
,
fileName
)
file_dir
=
os
.
path
.
join
(
basedir
,
UPLOAD_FOLDER
,
fileName
)
if
not
os
.
path
.
exists
(
file_dir
):
if
not
os
.
path
.
exists
(
file_dir
):
return
jsonify
({
"code"
:
0
,
"errmsg"
:
u"failed"
})
return
jsonify
({
"code"
:
0
,
"errmsg"
:
u"failed"
})
...
...
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