From 2ee25c9eba3826ec445ced473eeec0989ca35d1f Mon Sep 17 00:00:00 2001 From: Alex Dunn Date: Tue, 5 Dec 2023 10:37:22 -0800 Subject: [PATCH] expand application of allarrays repairkit fix to all properties --- src/pds/registrysweepers/repairkit/__init__.py | 3 +-- src/pds/registrysweepers/repairkit/versioning.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pds/registrysweepers/repairkit/__init__.py b/src/pds/registrysweepers/repairkit/__init__.py index c81027a..18dc452 100644 --- a/src/pds/registrysweepers/repairkit/__init__.py +++ b/src/pds/registrysweepers/repairkit/__init__.py @@ -46,8 +46,7 @@ def function_name (document:{}, fieldname:str)->{} """ REPAIR_TOOLS = { - re.compile("^ops:Data_File_Info/").match: [allarrays.repair], - re.compile("^ops:Label_File_Info/").match: [allarrays.repair], + re.compile(".").match: [allarrays.repair], } log = logging.getLogger(__name__) diff --git a/src/pds/registrysweepers/repairkit/versioning.py b/src/pds/registrysweepers/repairkit/versioning.py index 06cde8f..167da14 100644 --- a/src/pds/registrysweepers/repairkit/versioning.py +++ b/src/pds/registrysweepers/repairkit/versioning.py @@ -1,5 +1,5 @@ # Defines constants used for versioning updated documents with the in-use version of sweepers # SWEEPERS_VERSION must be incremented any time sweepers is changed in a way which requires reprocessing of # previously-processed data -SWEEPERS_REPAIRKIT_VERSION = 1 +SWEEPERS_REPAIRKIT_VERSION = 2 SWEEPERS_REPAIRKIT_VERSION_METADATA_KEY = "ops:Provenance/ops:registry_sweepers_repairkit_version"