Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
eidens committed Oct 4, 2023
1 parent d5580b3 commit 5de4a14
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions mecadoi/crossref/peer_review.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 5de4a14

Please sign in to comment.