From 2cbfe177c0243b0382374b65f7699553ee8ff44c Mon Sep 17 00:00:00 2001 From: Hrishabh Tiwari Date: Tue, 17 Sep 2024 18:21:31 +0530 Subject: [PATCH] Revert "add logger" This reverts commit 4ccd2510cc4cc9873619d71ad3759f302e4b9c8b. --- apps/sage300/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sage300/utils.py b/apps/sage300/utils.py index f0f7d5e..2d64e7e 100644 --- a/apps/sage300/utils.py +++ b/apps/sage300/utils.py @@ -206,7 +206,7 @@ def sync_vendors(self): vendor_type_mapping = None is_import_to_fyle_enabled = self.is_imported_enabled('VENDOR', self.workspace_id) - logger.info(f'is_import_to_fyle_enabled: {is_import_to_fyle_enabled}') + if not DestinationAttribute.objects.filter(workspace_id=self.workspace_id, attribute_type='VENDOR_TYPE').exists(): vendor_types = self.connection.vendors.get_vendor_types() self._sync_data(vendor_types, 'VENDOR_TYPE', 'vendor_type', self.workspace_id, ['version'])