Only assign new CORE ID if not in dry run mode
b/c if dry run, we didn't really make the API call so there is no ID
This commit is contained in:
		
							parent
							
								
									d3e2619944
								
							
						
					
					
						commit
						b96a4bc7b9
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -317,6 +317,7 @@ class ProductImporter(FromRattail, corepos_importing.model.ProductImporter): | ||||||
|         if corepos_product: |         if corepos_product: | ||||||
| 
 | 
 | ||||||
|             # update our Rattail Product with the CORE ID |             # update our Rattail Product with the CORE ID | ||||||
|  |             if not self.dry_run: | ||||||
|                 product.corepos_id = int(corepos_product['id']) |                 product.corepos_id = int(corepos_product['id']) | ||||||
|                 return corepos_product |                 return corepos_product | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar