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-client
Commits
18630b0f
Commit
18630b0f
authored
Dec 28, 2024
by
Wei Shoulin
Browse files
direct result
parent
d2f97a4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_dfs_client/catalog.py
View file @
18630b0f
...
@@ -47,7 +47,9 @@ def search(ra: float,
...
@@ -47,7 +47,9 @@ def search(ra: float,
'max_mag'
:
max_mag
,
'max_mag'
:
max_mag
,
'obstime'
:
obstime
,
'obstime'
:
obstime
,
'limit'
:
limit
'limit'
:
limit
})
})
if
datas
and
isinstance
(
datas
,
Result
):
return
datas
records
=
pickle
.
loads
(
datas
.
_content
)
records
=
pickle
.
loads
(
datas
.
_content
)
df
,
total_count
=
records
[
'records'
],
records
[
'totalCount'
]
df
,
total_count
=
records
[
'records'
],
records
[
'totalCount'
]
return
Result
.
ok_data
(
data
=
df
).
append
(
"totalCount"
,
total_count
)
return
Result
.
ok_data
(
data
=
df
).
append
(
"totalCount"
,
total_count
)
...
...
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