Skip to content

Commit

Permalink
fix(misc): comments;
Browse files Browse the repository at this point in the history
- Clearer comments.
  • Loading branch information
JVickery-TBS authored and duttonw committed Jul 18, 2024
1 parent 1bcfa52 commit 6c5aeb1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ckanext/xloader/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6c5aeb1

Please sign in to comment.