Skip to content

Commit

Permalink
fix sample test
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobgy committed Jul 16, 2021
1 parent 1b520c5 commit 3840df3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions samples/test/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,9 @@ def _create_run():
def simplify_proto_struct(data: dict) -> dict:
res = {}
for key, value in data.items():
print(value.__dir__)
if value.get('stringValue') is not None:
res[key] = value['stringValue']
if value.get('doubleValue') is not None:
elif value.get('doubleValue') is not None:
res[key] = value['doubleValue']
elif value.get('structValue') is not None:
res[key] = value['structValue']
Expand Down

0 comments on commit 3840df3

Please sign in to comment.