From 648f6e940eab4c289e37bbd0eb32bd448e4f60b1 Mon Sep 17 00:00:00 2001 From: Chris Donati Date: Thu, 24 May 2018 11:27:12 -0700 Subject: [PATCH] Fix list comprehension While the line being replace was likely intended to be a comprehension, it was producing a generator. --- AppDB/appscale/datastore/datastore_distributed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppDB/appscale/datastore/datastore_distributed.py b/AppDB/appscale/datastore/datastore_distributed.py index fdd039fa0b..5983a8a8dc 100644 --- a/AppDB/appscale/datastore/datastore_distributed.py +++ b/AppDB/appscale/datastore/datastore_distributed.py @@ -3224,7 +3224,7 @@ def apply_txn_changes(self, app, txn): composite_indices = [entity_pb.CompositeIndex(index) for index in self.datastore_batch.get_indices(app)] - decoded_groups = (entity_pb.Reference(group) for group in tx_groups) + decoded_groups = [entity_pb.Reference(group) for group in tx_groups] self.transaction_manager.set_groups(app, txn, decoded_groups) # Allow the lock to stick around if there is an issue applying the batch.