Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
6 months ago
by
Wei Shoulin
Browse files
Options
Download
Email Patches
Plain Diff
direct result
parent
d2f97a4b
main
20241229
20241228
1.0.2-20250101
1.0.1-202511
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
csst_dfs_client/catalog.py
+3
-1
csst_dfs_client/catalog.py
with
3 additions
and
1 deletion
+3
-1
csst_dfs_client/catalog.py
+
3
-
1
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
)
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets