Skip to content

Commit f956ca5

Browse files
committed
Fix examples to treat query result as object which is not dict
1 parent cc6a5da commit f956ca5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Getting Started
5252
vws_client.wait_for_target_processed(target_id=target_id)
5353
matching_targets = cloud_reco_client.query(image=my_image)
5454
55-
assert matching_targets[0]['target_id'] == target_id
55+
assert matching_targets[0].target_id == target_id
5656
5757
5858
Full Documentation

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ See the :doc:`api-reference` for full usage details.
5050
vws_client.wait_for_target_processed(target_id=target_id)
5151
matching_targets = cloud_reco_client.query(image=my_image)
5252
53-
assert matching_targets[0]['target_id'] == target_id
53+
assert matching_targets[0].target_id == target_id
5454
5555
Testing
5656
-------

0 commit comments

Comments
 (0)