From 6c5aeb1096fbad72383ec655a71cf95639674171 Mon Sep 17 00:00:00 2001 From: Jesse Vickery Date: Fri, 12 Jul 2024 20:14:56 +0000 Subject: [PATCH] fix(misc): comments; - Clearer comments. --- ckanext/xloader/plugin.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ckanext/xloader/plugin.py b/ckanext/xloader/plugin.py index 9da00153..a8aeb1af 100644 --- a/ckanext/xloader/plugin.py +++ b/ckanext/xloader/plugin.py @@ -84,8 +84,7 @@ def receive_validation_report(self, validation_report): {'id': validation_report.get('resource_id')}) if (toolkit.asbool(toolkit.config.get('ckanext.xloader.validation.enforce_schema', True)) or res_dict.get('schema', None)) and validation_report.get('status') != 'success': - # either validation.enforce_schema is turned on or it is off and there is a schema, - # we then explicitly check for the `validation_status` report to be `success` + # A schema is present, or required to be present return # if validation is running in async mode, it is running from the redis workers. # thus we need to do sync=True to have Xloader put the job at the front of the queue.