Refactor Query.get() => Session.get() per SQLAlchemy 1.4
				
					
				
			This commit is contained in:
		
							parent
							
								
									eaaf437568
								
							
						
					
					
						commit
						816874cc84
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -342,7 +342,7 @@ class ExportableInvoiceView(MasterView): | |||
| 
 | ||||
|         invoices = [] | ||||
|         for uuid in uuids: | ||||
|             invoice = self.Session.query(model.QuickbooksExportableInvoice).get(uuid) | ||||
|             invoice = self.Session.get(model.QuickbooksExportableInvoice, uuid) | ||||
|             if invoice and self.exportable(invoice): | ||||
|                 invoices.append(invoice) | ||||
|         if not invoices: | ||||
|  | @ -370,7 +370,7 @@ class ExportableInvoiceView(MasterView): | |||
| 
 | ||||
|         invoices = [] | ||||
|         for uuid in uuids: | ||||
|             invoice = self.Session.query(model.QuickbooksExportableInvoice).get(uuid) | ||||
|             invoice = self.Session.get(model.QuickbooksExportableInvoice, uuid) | ||||
|             if invoice and self.exportable(invoice): | ||||
|                 invoices.append(invoice) | ||||
|         if not invoices: | ||||
|  | @ -399,7 +399,7 @@ class ExportableInvoiceView(MasterView): | |||
| 
 | ||||
|         invoices = [] | ||||
|         for uuid in selected: | ||||
|             invoice = self.Session.query(model.QuickbooksExportableInvoice).get(uuid) | ||||
|             invoice = self.Session.get(model.QuickbooksExportableInvoice, uuid) | ||||
|             if invoice and invoice.status_code == invoice.STATUS_EXPORTABLE: | ||||
|                 invoices.append(invoice) | ||||
|             else: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar