Skip to content

Commit

Permalink
add message asking for TLDR contributions
Browse files Browse the repository at this point in the history
fixes #15
  • Loading branch information
vpratz committed Oct 17, 2024
1 parent 29fd931 commit fa4ea1c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/bib2readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,17 @@ def format_bibtex(entry) -> str:

def to_string(self) -> str:
entry_str = f"- **{self.title}**"
tldr_str = "<br />_TLDR: Reading this paper? Please consider contributing a TLDR summary._"
if self.awesome_tldr:
tldr_str = f"<br />_TLDR: {self.awesome_tldr}_"

if self.awesome_category == "software":
if self.awesome_tldr:
entry_str += f"<br />_TLDR: {self.awesome_tldr}_"
entry_str += tldr_str

elif self.awesome_category != "software":
if self.year:
entry_str += f" ({self.year})"
if self.awesome_tldr:
entry_str += f"<br />_TLDR: {self.awesome_tldr}_"
entry_str += tldr_str
if self.authors:
entry_str += f"<br />by {self.authors}"

Expand Down

0 comments on commit fa4ea1c

Please sign in to comment.