Skip to content

Commit 12446ec

Browse files
pcostellJon Wayne Parrott
authored andcommitted
Use Task for example kinds. (GoogleCloudPlatform#557)
1 parent 511eae4 commit 12446ec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

datastore/api/quickstart.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ def run_quickstart():
2424
datastore_client = datastore.Client()
2525

2626
# The kind of the entity to retrieve
27-
kind = 'Person'
27+
kind = 'Task'
2828
# The name/ID of the entity to retrieve
29-
name = 'Bob'
29+
name = 'sampletask1'
3030
# The Datastore key for the entity
3131
task_key = datastore_client.key(kind, name)
3232

3333
# Retrieves the entity
34-
entity = datastore_client.get(task_key)
34+
task = datastore_client.get(task_key)
3535

36-
print('Fetched entity: {}'.format(entity.key.name))
36+
print('Fetched task: {}'.format(task.key.name))
3737
# [END datastore_quickstart]
3838

3939

0 commit comments

Comments
 (0)