From 1aeabbc26b78667d2600831acba81da1066943ec Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Thu, 19 Nov 2020 11:29:01 +0100 Subject: verify: account for article/article-journal --- fuzzycat/verify.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fuzzycat/verify.py b/fuzzycat/verify.py index bd40e6a..a644262 100644 --- a/fuzzycat/verify.py +++ b/fuzzycat/verify.py @@ -192,7 +192,10 @@ def compare(a, b): if a.get("release_type") and b.get( "release_type") and a.get("release_type") != b.get("release_type"): - return (Status.DIFFERENT, Miss.RELEASE_TYPE) + # TODO: This can go wrong with "article" and "article-journal" + types = set([a.get("release_type"), b.get("release_type")]) + if not ("article" in types and "article-journal" in types): + return (Status.DIFFERENT, Miss.RELEASE_TYPE) if (a.get("release_type") == "dataset" and b.get("release_type") == "dataset"): if (a.get("ext_ids", {}).get("doi") and b.get("ext_ids", {}).get("doi") -- cgit v1.2.3