From 46f5db7460002be2b3ed9f94092c09b99af01cce Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 11 Feb 2023 22:07:00 -0600 Subject: [PATCH] Refactor `Query.get()` => `Session.get()` per SQLAlchemy 1.4 --- tailbone_corepos/views/batch/vendorcatalog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tailbone_corepos/views/batch/vendorcatalog.py b/tailbone_corepos/views/batch/vendorcatalog.py index 57a7a81..afd4e4b 100644 --- a/tailbone_corepos/views/batch/vendorcatalog.py +++ b/tailbone_corepos/views/batch/vendorcatalog.py @@ -2,7 +2,7 @@ ################################################################################ # # Rattail -- Retail Software Framework -# Copyright © 2010-2022 Lance Edgar +# Copyright © 2010-2023 Lance Edgar # # This file is part of Rattail. # @@ -65,7 +65,7 @@ class VendorCatalogView(base.VendorCatalogView): kwargs = super(VendorCatalogView, self).get_batch_kwargs(batch) if 'vendor_name' not in kwargs and batch.vendor_id: - vendor = CoreOfficeSession.query(corepos.Vendor).get(batch.vendor_id) + vendor = CoreOfficeSession.get(corepos.Vendor, batch.vendor_id) if vendor: kwargs['vendor_name'] = vendor.name