diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2020-11-19 16:31:54 +0100 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2020-11-19 16:31:54 +0100 |
commit | 50fef72ec2177cd7b16e6f605469591162914ce7 (patch) | |
tree | ba1869436be59c8e1b7b3400a3d731d7e5e2d5cb | |
parent | 1475e1ca0728b6ec75dab81851faa97b6b13f284 (diff) | |
download | fuzzycat-50fef72ec2177cd7b16e6f605469591162914ce7.tar.gz fuzzycat-50fef72ec2177cd7b16e6f605469591162914ce7.zip |
verify: ignore certain types of release types for now
-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"): |