From ea8778b900babc9a52a2aa8a47c3f6208ce04326 Mon Sep 17 00:00:00 2001 From: BenWhitehead Date: Tue, 29 Jan 2019 17:17:17 -0500 Subject: [PATCH] Update Datastore snippet for read only transaction * `datastore_transactional_single_entity_group_read_only` --- datastore/cloud-client/snippets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datastore/cloud-client/snippets.py b/datastore/cloud-client/snippets.py index 7b836a664d5..54631235ed1 100644 --- a/datastore/cloud-client/snippets.py +++ b/datastore/cloud-client/snippets.py @@ -687,7 +687,7 @@ def transactional_single_entity_group_read_only(client): ]) # [START datastore_transactional_single_entity_group_read_only] - with client.transaction(): + with client.transaction(read_only=True): task_list_key = client.key('TaskList', 'default') task_list = client.get(task_list_key)