Rename model for custdata
to CustomerClassic
This commit is contained in:
parent
a6541a2c32
commit
9c15952386
9 changed files with 27 additions and 27 deletions
|
@ -46,8 +46,8 @@ def get_core_members(config, api, progress=None):
|
|||
|
||||
# first we fetch all customer records from CORE DB
|
||||
with app.short_session(factory=CoreSession) as s:
|
||||
db_customers = s.query(corepos.CustData)\
|
||||
.order_by(corepos.CustData.card_number)\
|
||||
db_customers = s.query(corepos.CustomerClassic)\
|
||||
.order_by(corepos.CustomerClassic.card_number)\
|
||||
.all()
|
||||
s.expunge_all()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue