Commit 8528b157 authored by Wei Shoulin's avatar Wei Shoulin
Browse files

to abc

parent d2e89420
...@@ -4,7 +4,7 @@ import grpc ...@@ -4,7 +4,7 @@ import grpc
import datetime import datetime
import pickle import pickle
from collections import Iterable from collections.abc import Iterable
from csst_dfs_commons.models import Result from csst_dfs_commons.models import Result
from csst_dfs_commons.models.common import from_proto_model_list from csst_dfs_commons.models.common import from_proto_model_list
...@@ -130,7 +130,7 @@ class Level2DataApi(object): ...@@ -130,7 +130,7 @@ class Level2DataApi(object):
try: try:
brick_ids = get_parameter(kwargs, "brick_ids", []) brick_ids = get_parameter(kwargs, "brick_ids", [])
if not isinstance(brick_ids,Iterable): if not isinstance(brick_ids, Iterable):
brick_ids = [brick_ids] brick_ids = [brick_ids]
resp, _ = self.stub.FindCatalogFile.with_call(level2_pb2.FindLevel2CatalogReq( resp, _ = self.stub.FindCatalogFile.with_call(level2_pb2.FindLevel2CatalogReq(
......
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