Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2094cb4

Browse filesBrowse files
sorced-jimengelke
authored andcommitted
Note that key_filter is a helper for add_filter('__key__'). (GoogleCloudPlatform#1937)
1 parent 5131b86 commit 2094cb4
Copy full SHA for 2094cb4

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

‎datastore/cloud-client/snippets.py

Copy file name to clipboardExpand all lines: datastore/cloud-client/snippets.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ def key_filter(client):
409409
# [START datastore_key_filter]
410410
query = client.query(kind='Task')
411411
first_key = client.key('Task', 'first_task')
412+
# key_filter(key, op) translates to add_filter('__key__', op, key).
412413
query.key_filter(first_key, '>')
413414
# [END datastore_key_filter]
414415

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.