From a68a04f2a783d75e1c33fa1289734890b5296a7c Mon Sep 17 00:00:00 2001 From: labhvam5 Date: Sun, 3 Dec 2023 14:28:37 +0530 Subject: [PATCH] resloving comment --- apps/mappings/helpers.py | 2 +- fyle_integrations_imports | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/mappings/helpers.py b/apps/mappings/helpers.py index 63fe5fa8..21bfc2b1 100644 --- a/apps/mappings/helpers.py +++ b/apps/mappings/helpers.py @@ -14,7 +14,7 @@ def schedule_or_delete_fyle_import_tasks(configuration: WorkspaceGeneralSettings if configuration.import_vendors_as_merchants: start_datetime = datetime.now() Schedule.objects.update_or_create(func='apps.mappings.tasks.auto_import_and_map_fyle_fields', args='{}'.format(configuration.workspace_id), defaults={'schedule_type': Schedule.MINUTES, 'minutes': 24 * 60, 'next_run': start_datetime}) - elif not configuration.import_vendors_as_merchants: + else: Schedule.objects.filter(func='apps.mappings.tasks.auto_import_and_map_fyle_fields', args='{}'.format(configuration.workspace_id)).delete() diff --git a/fyle_integrations_imports b/fyle_integrations_imports index 12715149..93ea7740 160000 --- a/fyle_integrations_imports +++ b/fyle_integrations_imports @@ -1 +1 @@ -Subproject commit 12715149ca7bb27f2b2c0c194341a93fcdb89946 +Subproject commit 93ea774070ee6d2c9f89685cb1127068bd19f313