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
ffe4e5d4
Commit
ffe4e5d4
authored
Jun 26, 2020
by
李景熙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加获取文件列表的接口
parent
5c668a0c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
Data.py
DAPlatform/Dao/Data.py
+21
-0
app.py
DAPlatform/app.py
+1
-0
No files found.
DAPlatform/Dao/Data.py
View file @
ffe4e5d4
...
@@ -46,6 +46,27 @@ def find_data(id):
...
@@ -46,6 +46,27 @@ def find_data(id):
return
Result
(
1
,
"find success"
,
data
.
url
)
return
Result
(
1
,
"find success"
,
data
.
url
)
# 查找某分片下的文件
def
find_data_by_slice
(
slice_id
):
try
:
find
=
Data
.
select
(
Data
.
data_id
,
Data
.
name
)
.
where
(
Data
.
slice_id
==
slice_id
)
index
=
0
list
=
[]
while
index
<
len
(
find
):
list
.
append
(
{
'id'
:
find
[
index
]
.
data_id
,
'name'
:
find
[
index
]
.
name
}
)
index
+=
1
except
:
return
Result
(
0
,
"find failed"
,
{})
else
:
return
Result
(
1
,
"find success"
,
list
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
Data
.
drop_table
()
Data
.
drop_table
()
Data
.
create_table
()
Data
.
create_table
()
DAPlatform/app.py
View file @
ffe4e5d4
...
@@ -5,6 +5,7 @@ from views.uploadDownload import uploadDownload
...
@@ -5,6 +5,7 @@ from views.uploadDownload import uploadDownload
from
views.user
import
user
from
views.user
import
user
from
views.task
import
task
from
views.task
import
task
from
views.slice
import
slice
from
views.slice
import
slice
from
views.file
import
data
# from views.imageAnnotation import image
# from views.imageAnnotation import image
from
config.config
import
DevelopmentConfig
from
config.config
import
DevelopmentConfig
...
...
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