Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix empty set
  • Loading branch information
lucemia committed Dec 3, 2014
commit 79ff1a35d1b08f468fac659d7df8bdeae8e9a019
3 changes: 3 additions & 0 deletions gcloud/datastore/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,9 @@ def save_entity(self, dataset_id, key_pb, properties,
insert.key.CopyFrom(key_pb)

for name, value in properties.items():
if isinstance(value, list) and len(value) == 0:
continue

prop = insert.property.add()
# Set the name of the property.
prop.name = name
Expand Down