Bit o' cleanup
This commit is contained in:
parent
aa4346d140
commit
25d32aec03
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue