Skip to content

Commit

Permalink
Merge pull request #50 from djjudas21/44_holy_saturday
Browse files Browse the repository at this point in the history
Give no colour for Holy Saturday
  • Loading branch information
djjudas21 committed Mar 26, 2024
2 parents 985f922 + 63da599 commit 4b3d4c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion liturgical_colour/feasts.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def lookup_feast(datecode):
-4: { 'name': 'Holy Wednesday', 'colour':'red', 'url': 'https://en.wikipedia.org/wiki/Holy_Wednesday', 'prec':9, 'type': 'Principal Holy Day'},
-3: { 'name': 'Maundy Thursday', 'colour':'white', 'url': 'https://en.wikipedia.org/wiki/Maundy_Thursday', 'prec':9, 'type': 'Principal Holy Day'},
-2: { 'name': 'Good Friday', 'colour':'red', 'url': 'https://en.wikipedia.org/wiki/Good_Friday', 'prec':9, 'type': 'Principal Holy Day' },
-1: { 'name': 'Holy Saturday', 'colour':'red', 'url': 'https://en.wikipedia.org/wiki/Holy_Saturday', 'prec':9, 'type': 'Principal Holy Day' },
-1: { 'name': 'Holy Saturday', 'colour':'not given', 'url': 'https://en.wikipedia.org/wiki/Holy_Saturday', 'prec':9, 'type': 'Principal Holy Day' },
0 : { 'name': 'Easter', 'url': 'https://en.wikipedia.org/wiki/Easter', 'prec':9, 'type': 'Principal Feast' },
39: { 'name': 'Ascension', 'url': 'https://en.wikipedia.org/wiki/Ascension_Day', 'prec':9, 'type': 'Principal Feast' },
49: { 'name': 'Pentecost', 'colour': 'red', 'url': 'https://en.wikipedia.org/wiki/Pentecost', 'prec':9, 'type': 'Principal Feast' },
Expand Down
3 changes: 2 additions & 1 deletion liturgical_colour/funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ def colour_code(colour: str) -> str:
'red': '#ce0002',
'rose': '#eb597a',
'purple': '#664fa6',
'green': '#279942'
'green': '#279942',
'not given': '#000000'
}

return codes.get(colour)

0 comments on commit 4b3d4c1

Please sign in to comment.