Commit cebbb35e authored by Wei Shoulin's avatar Wei Shoulin
Browse files

no timeit

parent 560df5a2
......@@ -39,11 +39,11 @@ class CatalogApi(object):
),metadata = get_auth_headers())
if resp.success:
t_start = time.time()
# t_start = time.time()
data = from_proto_model_list(Gaia3Record, resp.records)
t_end = time.time()
log.info("object deserialization used: %.6f's" %(t_end - t_start,))
return Result.ok_data(data=from_proto_model_list(Gaia3Record, resp.records)).append("totalCount", resp.totalCount)
# t_end = time.time()
# log.info("object deserialization used: %.6f's" %(t_end - t_start,))
return Result.ok_data(data = data).append("totalCount", resp.totalCount)
else:
return Result.error(message = str(resp.error.detail))
......
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