From 6000464201b339cedc5d07e75e5c847337012317 Mon Sep 17 00:00:00 2001 From: huberrob Date: Thu, 31 Mar 2022 13:50:29 +0200 Subject: [PATCH] version 1.4.8b ; default namespaces normalisation in preprocessor --- fuji_server/controllers/fair_check.py | 2 +- fuji_server/helper/preprocessor.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fuji_server/controllers/fair_check.py b/fuji_server/controllers/fair_check.py index 3aa46b66..5fa3f759 100644 --- a/fuji_server/controllers/fair_check.py +++ b/fuji_server/controllers/fair_check.py @@ -99,7 +99,7 @@ class FAIRCheck: IDENTIFIERS_ORG_DATA = {} GOOGLE_DATA_DOI_CACHE = [] GOOGLE_DATA_URL_CACHE = [] - FUJI_VERSION = '1.4.8' + FUJI_VERSION = '1.4.8b' def __init__(self, uid, diff --git a/fuji_server/helper/preprocessor.py b/fuji_server/helper/preprocessor.py index 441c9cd6..4e76baa9 100644 --- a/fuji_server/helper/preprocessor.py +++ b/fuji_server/helper/preprocessor.py @@ -358,7 +358,7 @@ def retrieve_default_namespaces(cls): ns_file_path = os.path.join(cls.fuji_server_dir, 'data', 'default_namespaces.txt') with open(ns_file_path) as f: #ns = [line.split(':',1)[1].strip() for line in f] - ns = [line.rstrip() for line in f] + ns = [line.rstrip().rstrip('/#') for line in f] if ns: cls.default_namespaces = ns