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
979eea8e
Commit
979eea8e
authored
Oct 10, 2020
by
李景熙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后端返回数据单列表格式改动
parent
97f1c524
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
app.py
DAPlatform/app.py
+1
-1
dataset.py
DAPlatform/views/dataset.py
+4
-3
No files found.
DAPlatform/app.py
View file @
979eea8e
...
...
@@ -27,7 +27,7 @@ app.register_blueprint(image)
app
.
register_blueprint
(
dataset
)
if
__name__
==
'__main__'
:
app
.
run
(
debug
=
True
,
host
=
'
47.92.1.107
'
,
port
=
9100
)
app
.
run
(
debug
=
True
,
host
=
'
localhost
'
,
port
=
9100
)
@app.route
(
'/'
)
...
...
DAPlatform/views/dataset.py
View file @
979eea8e
...
...
@@ -23,14 +23,14 @@ def get_data_list():
index
=
0
while
index
<
resLen
:
list
.
append
({
'id'
:
result
[
index
][
'_id'
]
,
'time'
:
result
[
index
][
'date'
]
,
'id'
:
str
(
result
[
index
][
'_id'
])
,
'time'
:
str
(
result
[
index
][
'date'
])
,
'num'
:
len
(
result
[
index
][
'data_list'
])
})
index
+=
1
res
=
{
'code'
:
1
,
'message'
:
"success"
,
'data'
:
str
(
list
)
'data'
:
list
}
return
json
.
dumps
(
res
)
\ No newline at end of file
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