File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- __version_info__ = (0 , 0 , 46 )
15
+ __version_info__ = (0 , 0 , 47 )
16
16
__version__ = "." .join (map (str , __version_info__ ))
Original file line number Diff line number Diff line change @@ -318,9 +318,15 @@ def output = json_string[...]
318
318
"""
319
319
if not rsp .results :
320
320
return {}
321
- pa_table = rsp .results [0 ]['table' ]
322
- data = pa_table .to_pydict ()
323
- return json .loads (data ["v1" ][0 ])
321
+ output_result = {}
322
+ for result in rsp .results :
323
+ if result ['relationId' ] == "/:output/String" :
324
+ pa_table = result ['table' ]
325
+ output_result = pa_table .to_pydict ()
326
+ break
327
+ if not output_result :
328
+ return {}
329
+ return json .loads (output_result ["v1" ][0 ])
324
330
325
331
326
332
def _parse_string (rsp : api .TransactionAsyncResponse ) -> str :
You can’t perform that action at this time.
0 commit comments