Skip to content

Commit

Permalink
script changes
Browse files Browse the repository at this point in the history
  • Loading branch information
labhvam5 committed Nov 27, 2023
1 parent 47e5b57 commit e164864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/python/create-update-new-projects-import.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
for schedule in existing_import_enabled_schedules:
configuration = WorkspaceGeneralSettings.objects.get(workspace_id=schedule['args'])
mapping_setting = MappingSetting.objects.filter(source_field='PROJECT', workspace_id=schedule['args'], import_to_fyle=True).first()
if not configuration.import_categories and not configuration.import_vendors_as_merchants:
if not configuration.import_categories and not configuration.import_items and not configuration.import_vendors_as_merchants:
print('Deleting schedule for workspace_id: ', schedule['args'])
Schedule.objects.get(
func='apps.mappings.tasks.auto_import_and_map_fyle_fields',
Expand Down

0 comments on commit e164864

Please sign in to comment.