Commit 2be9aa25 authored by Wei Shoulin's avatar Wei Shoulin
Browse files

bytes

parent ca921178
...@@ -2,7 +2,6 @@ import grpc ...@@ -2,7 +2,6 @@ import grpc
import pickle import pickle
from collections import deque from collections import deque
import logging import logging
import zlib
import io import io
from csst_dfs_commons.models import Result from csst_dfs_commons.models import Result
...@@ -51,7 +50,7 @@ class CatalogApi(object): ...@@ -51,7 +50,7 @@ class CatalogApi(object):
else: else:
return Result.error(message = str(resp.error.detail)) return Result.error(message = str(resp.error.detail))
datas.flush() datas.flush()
records = pickle.loads(zlib.decompress(datas.getvalue())) records = pickle.loads(datas.getvalue())
ret_records2 = [] ret_records2 = []
for r in records: for r in records:
rec = Gaia3Record() rec = Gaia3Record()
......
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