Bit o' cleanup
This commit is contained in:
		
							parent
							
								
									aa4346d140
								
							
						
					
					
						commit
						25d32aec03
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		|  | @ -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,7 +51,7 @@ 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…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar