diff options
-rw-r--r-- | fuzzycat/verify.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fuzzycat/verify.py b/fuzzycat/verify.py index 22d8cc7..a924738 100644 --- a/fuzzycat/verify.py +++ b/fuzzycat/verify.py @@ -199,9 +199,11 @@ def compare(a, b): if a.get("release_type") and b.get( "release_type") and a.get("release_type") != b.get("release_type"): - # TODO: This can go wrong with "article" and "article-journal" + # TODO(martin): This can go wrong with "article" and "article-journal" + # TODO(martin): Some arxiv articles are marked are release_type: report types = set([a.get("release_type"), b.get("release_type")]) - if not ("article" in types and "article-journal" in types): + ignore_release_types = set(["article", "article-journal", "report"]) + if len(types & ignore_release_types) == 0: return (Status.DIFFERENT, Miss.RELEASE_TYPE) if (a.get("release_type") == "dataset" and b.get("release_type") == "dataset"): |