Skip to content

Commit ec034e1

Browse files
committed
Moar chixen bonez.
1 parent 6dcd06b commit ec034e1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

gcloud/datastore/demo/demo.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,15 @@
4141

4242
# Now let's try a more advanced query.
4343
# First, let's create some entities.
44-
samples = []
45-
for id, name, age in [ # id, name, age
44+
SAMPLE_DATA = [
4645
(1234, 'Computer', 10),
4746
(2345, 'Computer', 8),
4847
(3456, 'Laptop', 10),
4948
(4567, 'Printer', 11),
5049
(5678, 'Printer', 12),
51-
(6789, 'Computer', 13)]:
50+
(6789, 'Computer', 13)]
51+
samples = []
52+
for id, name, age in SAMPLE_DATA:
5253
key = Key('Thing', id)
5354
samples.append(key)
5455
entity = Entity(key)

0 commit comments

Comments
 (0)