Skip to content

Commit

Permalink
Changed name of method
Browse files Browse the repository at this point in the history
  • Loading branch information
whitead committed Sep 19, 2024
1 parent e316cc5 commit 3846e62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions paperqa/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,15 +576,15 @@ def formatted_citation(self) -> str:
" to call `hydrate`?"
)

if self.source_quality_str:
if self.source_quality_message:
return (
f"{self.citation} This article has {self.citation_count} citations and is"
f" from a {self.source_quality_str}."
f" from a {self.source_quality_message}."
)
return f"{self.citation} This article has {self.citation_count} citations."

@property
def source_quality_str(self) -> str:
def source_quality_message(self) -> str:
return (
SOURCE_QUALITY_MESSAGES[self.source_quality]
if self.source_quality is not None # note - zero is a valid value
Expand Down

0 comments on commit 3846e62

Please sign in to comment.