More refactoring, Query.get()
=> Session.get()
This commit is contained in:
parent
0b5930a511
commit
82892be096
2 changed files with 3 additions and 5 deletions
|
@ -2,7 +2,7 @@
|
|||
################################################################################
|
||||
#
|
||||
# Rattail -- Retail Software Framework
|
||||
# Copyright © 2010-2022 Lance Edgar
|
||||
# Copyright © 2010-2023 Lance Edgar
|
||||
#
|
||||
# This file is part of Rattail.
|
||||
#
|
||||
|
@ -185,5 +185,4 @@ class FromCOREPOSToRattailProducts(FromCOREPOSToRattailBase):
|
|||
else:
|
||||
# try to fetch CORE POS object via typical method
|
||||
Model = getattr(corepos, change.payload_type)
|
||||
return self.corepos_session.query(Model)\
|
||||
.get(int(change.payload_key))
|
||||
return self.corepos_session.get(Model, int(change.payload_key))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue