Bit o' cleanup

This commit is contained in:
Lance Edgar 2018-11-25 19:40:14 -06:00
parent aa4346d140
commit 25d32aec03

View file

@ -44,7 +44,6 @@ class PricingBatchHandler(BatchHandler):
Batch row data comes from product query.
"""
assert batch.products
session = orm.object_session(batch)
def append(item, i):
row = model.PricingBatchRow()
@ -52,8 +51,8 @@ class PricingBatchHandler(BatchHandler):
row.upc = row.product.upc
self.add_row(batch, row)
assert self.progress_loop(append, batch.products, progress,
message="Adding initial rows to batch")
self.progress_loop(append, batch.products, progress,
message="Adding initial rows to batch")
def refresh_row(self, row):
"""