Commit 18630b0f authored by Wei Shoulin's avatar Wei Shoulin
Browse files

direct result

parent d2f97a4b
...@@ -48,6 +48,8 @@ def search(ra: float, ...@@ -48,6 +48,8 @@ def search(ra: float,
'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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment