From 4522f4ce916223afb3c4edd02a7be6018d0ce5a4 Mon Sep 17 00:00:00 2001 From: Trevor Gevers Date: Wed, 9 Nov 2022 18:56:18 -0600 Subject: [PATCH] Update datastore_wordcount.py (#23724) --- .../apache_beam/examples/cookbook/datastore_wordcount.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdks/python/apache_beam/examples/cookbook/datastore_wordcount.py b/sdks/python/apache_beam/examples/cookbook/datastore_wordcount.py index c893a2cd8b2d..6a4b9e234297 100644 --- a/sdks/python/apache_beam/examples/cookbook/datastore_wordcount.py +++ b/sdks/python/apache_beam/examples/cookbook/datastore_wordcount.py @@ -121,8 +121,8 @@ def __init__(self, project, namespace, kind, ancestor): def make_entity(self, content): ancestor_key = Key([self._kind, self._ancestor], - self._namespace, - self._project) + namespace=self._namespace, + project=self._project) # Namespace and project are inherited from parent key. key = Key([self._kind, str(uuid.uuid4())], parent=ancestor_key) entity = Entity(key)