diff options
Diffstat (limited to 'fuzzycat/verify.py')
-rw-r--r-- | fuzzycat/verify.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fuzzycat/verify.py b/fuzzycat/verify.py index 9eb808b..f570511 100644 --- a/fuzzycat/verify.py +++ b/fuzzycat/verify.py @@ -233,10 +233,9 @@ def verify(a: Dict, b: Dict, min_title_length=5) -> Tuple[str, str]: if has_doi_prefix(a_doi, "10.3403") and has_doi_prefix(b_doi, "10.3403"): if a_doi + "u" == b_doi or b_doi + "u" == a_doi: return Verify(Status.STRONG, Reason.CUSTOM_BSI_UNDATED) - if a_title == b_title and ((dict_has_key(a, "extra.subtitle") - and not dict_has_key(b, "extra.subtitle")) or - (dict_has_key(b, "extra.subtitle") - and not dict_has_key(a, "extra.subtitle"))): + if a_title == b_title and ( + (dict_has_key(a, "extra.subtitle") and not dict_has_key(b, "extra.subtitle")) or + (dict_has_key(b, "extra.subtitle") and not dict_has_key(a, "extra.subtitle"))): return Verify(Status.STRONG, Reason.CUSTOM_BSI_SUBDOC) except PathAccessError: pass |