From 5de4a14d42d1f120e0e39e1f314cfdffb6d680d8 Mon Sep 17 00:00:00 2001 From: Thomas Eidens Date: Wed, 4 Oct 2023 21:29:19 +0200 Subject: [PATCH] Fixed formatting --- mecadoi/crossref/peer_review.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/mecadoi/crossref/peer_review.py b/mecadoi/crossref/peer_review.py index e056e82..6473407 100644 --- a/mecadoi/crossref/peer_review.py +++ b/mecadoi/crossref/peer_review.py @@ -172,20 +172,19 @@ def generate_reviews(article: Article) -> Generator[PeerReview, None, None]: def create_institution(institution: MecadoiInstitution) -> CrossrefInstitution: - city = ( - institution.city - if institution.city and len(institution.city) > 1 - else None - ) + city = institution.city if institution.city and len(institution.city) > 1 else None country = ( institution.country if institution.country and len(institution.country) > 1 else None ) place = ( - f"{city}, {country}" if city and country - else city if city - else country if country + f"{city}, {country}" + if city and country + else city + if city + else country + if country else None ) return CrossrefInstitution(