Skip to content

Commit 2ed9244

Browse files
committed
Removed unnecessary variables from track_ecommerce_transaction
1 parent 2cf88e9 commit 2ed9244

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

snowplow_tracker/tracker.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ def __init__(self, emitters, subject=None,
8686
"aid": app_id
8787
}
8888

89-
9089
@staticmethod
9190
@contract
9291
def get_uuid():
@@ -260,15 +259,13 @@ def track_ecommerce_transaction(self, order_id, total_value,
260259

261260
tstamp = Tracker.get_timestamp(tstamp)
262261

263-
transaction_result = self.complete_payload(pb, context, tstamp)
264-
265-
item_results = []
262+
self.complete_payload(pb, context, tstamp)
266263

267264
for item in items:
268265
item["tstamp"] = tstamp
269266
item["order_id"] = order_id
270267
item["currency"] = currency
271-
item_results.append(self.track_ecommerce_transaction_item(**item))
268+
self.track_ecommerce_transaction_item(**item)
272269

273270
return self
274271

0 commit comments

Comments
 (0)