Skip to content

Commit

Permalink
added cawein
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Morris committed Aug 18, 2024
1 parent b391900 commit 415aa61
Show file tree
Hide file tree
Showing 3 changed files with 206 additions and 46 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1 +1 @@
All of the poems in here are good, or interesting. There are currently 8,802 poems in 43 languages by 569 authors from 54 countries.
All of the poems in here are good, or interesting. There are currently 8,806 poems in 43 languages by 570 authors from 54 countries.
2 changes: 2 additions & 0 deletions poems/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ def get_liturgy(t=ttime.time()):
return "triduum"
if -39 < easter_year_day - dt.date().timetuple().tm_yday <= 0:
return "eastertide"
if datetime(dt.year,10,31).timetuple().tm_yday <= year_day < datetime(dt.year,11,2).timetuple().tm_yday:
return "allhallowtide"
if advent_sunday_year_day <= year_day < christmas_year_day:
return "advent"
return "ordinary_time"
Expand Down
Loading

0 comments on commit 415aa61

Please sign in to comment.