More refactoring, Query.get()
=> Session.get()
This commit is contained in:
parent
0b5930a511
commit
82892be096
2 changed files with 3 additions and 5 deletions
|
@ -235,8 +235,7 @@ class FromRattailToCore(DataSyncImportConsumer):
|
|||
self.invoke_importer(session, change)
|
||||
|
||||
def get_host_object(self, session, change):
|
||||
return session.query(getattr(model, change.payload_type))\
|
||||
.get(change.payload_key)
|
||||
return session.get(getattr(model, change.payload_type), change.payload_key)
|
||||
|
||||
def get_customers(self, session, change):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue