Skip to content

Commit

Permalink
update poems
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Morris committed May 9, 2024
1 parent 704e30d commit 1a2b8a1
Show file tree
Hide file tree
Showing 3 changed files with 411 additions and 60 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
poems
-----

All of the poems in here are good, or interesting. There are currently 7,781 poems by 529 poets.
All of the poems in here are good, or interesting. There are currently 7,790 poems by 531 poets.
6 changes: 3 additions & 3 deletions poems/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,15 +161,15 @@ def pretty_date(self):
@property
def spacetime(self):
parts = []
if "location" in self.metadata:
parts.append(self.metadata["location"])
if self.pretty_date:
parts.append(self.pretty_date)
if "location" in self.metadata:
parts.append(self.metadata["location"])
return ". ".join(parts) or ""

@property
def test_email_subject(self):
return f"TEST ({self.pretty_date}): {self.title_by_author} {self.keywords}"
return f"TEST ({self.context.pretty_date}): {self.title_by_author} {self.keywords}"

@property
def daily_email_subject(self):
Expand Down
Loading

0 comments on commit 1a2b8a1

Please sign in to comment.