The import_log.status was incorrectly set to 'failed' when there were NO errors. The condition 'if result["errors"]' evaluates to False when errors list is empty, causing the logic to be inverted. Fixed: 'completed' if not result['errors'] else 'failed' This caused successful imports with 0 errors to show as 'Failed' in the UI.
121 KiB
121 KiB