From 8cede5e69186ea3779b3b8ad756d40884015c116 Mon Sep 17 00:00:00 2001 From: jsjiang Date: Thu, 2 Nov 2023 12:06:39 -0700 Subject: [PATCH] Bug fix to handle shoulder string with dot current script failed on the following shoulder.minter which contains a dot in the shoulder string 's6.caida': 'https://n2t.net/a/ezid/m/ark/d1986/s6.caida', 'https://n2t.net/a/ezid/m/ark/81986/s6.caida', Use build-in function impl.nog.bdb.get_bdb_path_by_shoulder_model(shoulder_model) to handle this. --- .../management/commands/diag-create-missing-minters-tmp-fix.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ezidapp/management/commands/diag-create-missing-minters-tmp-fix.py b/ezidapp/management/commands/diag-create-missing-minters-tmp-fix.py index 39432683..54acda0a 100644 --- a/ezidapp/management/commands/diag-create-missing-minters-tmp-fix.py +++ b/ezidapp/management/commands/diag-create-missing-minters-tmp-fix.py @@ -92,9 +92,8 @@ def create_missing_minters(self): unspecified_count += 1 continue - naan_str, shoulder_str = re.split(r'[/:.]', s.minter)[-2:] # noinspection PyProtectedMember - bdb_path = impl.nog.bdb._get_bdb_path(naan_str, shoulder_str, root_path=None) + bdb_path = impl.nog.bdb.get_bdb_path_by_shoulder_model(s) if pathlib.Path(bdb_path).exists(): continue