diff --git a/libcovebods/tasks/checks.py b/libcovebods/tasks/checks.py index ef41530..2534311 100644 --- a/libcovebods/tasks/checks.py +++ b/libcovebods/tasks/checks.py @@ -20,6 +20,10 @@ class LegacyChecks(AdditionalCheck): This now only has legacy checks that don't need to store a history. Ones that need to store history are in LegacyChecksNeedingHistory.""" + @staticmethod + def does_apply_to_schema(lib_cove_bods_config, schema_object) -> bool: + return schema_object.is_schema_version_less_than("0.4") + @staticmethod def get_additional_check_types_possible( lib_cove_bods_config, schema_object @@ -254,6 +258,10 @@ class LegacyChecksNeedingHistory(AdditionalCheck): This now only has legacy checks that need to store a history. Ones that don't need to store history are in LegacyChecks.""" + @staticmethod + def does_apply_to_schema(lib_cove_bods_config, schema_object) -> bool: + return schema_object.is_schema_version_less_than("0.4") + @staticmethod def get_additional_check_types_possible( lib_cove_bods_config, schema_object