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.
|
Batch row data comes from product query.
|
||||||
"""
|
"""
|
||||||
assert batch.products
|
assert batch.products
|
||||||
session = orm.object_session(batch)
|
|
||||||
|
|
||||||
def append(item, i):
|
def append(item, i):
|
||||||
row = model.PricingBatchRow()
|
row = model.PricingBatchRow()
|
||||||
|
@ -52,8 +51,8 @@ class PricingBatchHandler(BatchHandler):
|
||||||
row.upc = row.product.upc
|
row.upc = row.product.upc
|
||||||
self.add_row(batch, row)
|
self.add_row(batch, row)
|
||||||
|
|
||||||
assert self.progress_loop(append, batch.products, progress,
|
self.progress_loop(append, batch.products, progress,
|
||||||
message="Adding initial rows to batch")
|
message="Adding initial rows to batch")
|
||||||
|
|
||||||
def refresh_row(self, row):
|
def refresh_row(self, row):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue