Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(python) : enhancing get value method for Value types #29

Merged
merged 5 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions python/src/fds/protobuf/stach/extensions/v2/StachUtilities.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from google.protobuf import json_format
from google.protobuf.struct_pb2 import Struct
from google.protobuf.struct_pb2 import Struct, Value


class StachUtilities:
@staticmethod
Expand Down Expand Up @@ -42,7 +43,7 @@ def check_add_rowspan_items(position, rowIndex, row_spread_tuple_list):

@staticmethod
def get_value(val):
if(type(val) is Struct):
if(type(val) is Struct or type(val) is Value):
return str(json_format.MessageToDict(val))
else:
return val
Expand Down
2 changes: 1 addition & 1 deletion python/src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setuptools.setup(
name="fds.protobuf.stach.extensions",
version="1.2.1",
version="1.3.0",
author="Analytics API",
author_email="[email protected]",
description="FactSet stach extensions",
Expand Down
Loading