From 42184e34b75ea07de9fa891d9b893352e1e1db46 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 17 Mar 2020 16:36:31 -0500 Subject: [PATCH] Fix refactoring bugs --- rattail_corepos/datasync/rattail.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rattail_corepos/datasync/rattail.py b/rattail_corepos/datasync/rattail.py index 37a5d7a..6d26529 100644 --- a/rattail_corepos/datasync/rattail.py +++ b/rattail_corepos/datasync/rattail.py @@ -65,11 +65,11 @@ class FromCOREAPIToRattail(NewDataSyncImportConsumer): # normal logic works fine for this (maybe?) self.invoke_importer(session, change) else: - # import customer data from API, into various Rattail tables - customer = self.get_host_object(session, change) + # import member data from API, into various Rattail tables + member = self.get_host_object(session, change) self.process_change(session, self.importers['Customer'], - host_object=customer) - people = self.importers['Person'].get_person_objects_for_customer(customer) + host_object=member) + people = self.importers['Person'].get_person_objects_for_member(member) for person in people: self.process_change(session, self.importers['Person'], host_object=person)