Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-dfs
csst-dfs-api-cluster
Commits
3b45d8ad
Commit
3b45d8ad
authored
Jul 03, 2023
by
Wei Shoulin
Browse files
data
parent
9e108dcc
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_dfs_api_cluster/mbi/level2.py
View file @
3b45d8ad
...
...
@@ -107,7 +107,7 @@ class Level2DataApi(object):
return
Result
.
error
(
message
=
str
(
resp
.
error
.
detail
))
datas
.
flush
()
records
=
pickle
.
loads
(
datas
.
getvalue
())
return
Result
.
ok_data
(
data
=
records
).
append
(
"totalCount"
,
totalCount
)
return
Result
.
ok_data
(
data
=
records
[
0
]
).
append
(
"totalCount"
,
totalCount
)
.
append
(
"columns"
,
records
[
1
])
except
grpc
.
RpcError
as
e
:
return
Result
.
error
(
message
=
"%s:%s"
%
(
e
.
code
().
value
,
e
.
details
()))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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