From 602c554b0803f5c7fc73a78f7292595b460b8534 Mon Sep 17 00:00:00 2001 From: Jessy Barrette <30420025+JessyBarrette@users.noreply.github.com> Date: Wed, 14 Feb 2024 15:37:22 -0500 Subject: [PATCH] include PDF and ZIP ressource types --- hakai_ckan_records_checks/hakai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hakai_ckan_records_checks/hakai.py b/hakai_ckan_records_checks/hakai.py index bcdb94fb..7cb6574d 100644 --- a/hakai_ckan_records_checks/hakai.py +++ b/hakai_ckan_records_checks/hakai.py @@ -73,7 +73,7 @@ def _test(condition, level, message): _test(resource["url"] != "", "ERROR", "Empty resource url") _test(resource["format"] != "", "ERROR", "Empty resource format") _test( - resource["format"] in ["HTML", "ERDDAP", "OBIS"], + resource["format"] in ["HTML", "ERDDAP", "OBIS","PDF","ZIP"], "ERROR", f"Invalid resource format: resources[{index}].format={resource['format']}", )