Skip to content

Commit

Permalink
resloving comment
Browse files Browse the repository at this point in the history
  • Loading branch information
labhvam5 committed Dec 3, 2023
1 parent 00d1172 commit a68a04f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/mappings/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down
2 changes: 1 addition & 1 deletion fyle_integrations_imports

0 comments on commit a68a04f

Please sign in to comment.