brianglass / orthocal-python

Orthodox Calendar
https://orthocal.info
MIT License
17 stars 3 forks source link

Could all days have titles? #54

Open chadwhitacre opened 6 months ago

chadwhitacre commented 6 months ago

I have been depending on titles in the Gospel Desk API, but not all days have at least one title. Could they? 🤔

I find only a few days without a title:

(orthocal) $ sqlite3 db.sqlite3 "select pdist, title from calendarium_day where pdist < 999 and title='';"
-76|
-75|
-74|
-73|
-72|
-71|
-69|
-68|
-67|
-66|
-65|
-64|
(orthocal) $ sqlite3 db.sqlite3 "select pdist, title from calendarium_day where pdist < -62;"
-77|Sunday of Zacchaeus
-76|
-75|
-74|
-73|
-72|
-71|
-70|Sunday of the Publican and the Pharisee
-69|
-68|
-67|
-66|
-65|
-64|
-63|Sunday of the Prodigal Son

Would the following work?

-77|Sunday of Zacchaeus
-76|Monday after Zacchaeus Sunday
-75|Tuesday after Zacchaeus Sunday
-74|Wednesday after Zacchaeus Sunday
-73|Thursday after Zacchaeus Sunday
-72|Friday after Zacchaeus Sunday
-71|Saturday after Zacchaeus Sunday
-70|Sunday of the Publican and the Pharisee
-69|Monday after Publican and Pharisee
-68|Tuesday after Publican and Pharisee
-67|Wednesday after Publican and Pharisee
-66|Thursday after Publican and Pharisee
-65|Friday after Publican and Pharisee
-64|Saturday after Publican and Pharisee
-63|Sunday of the Prodigal Son
chadwhitacre commented 6 months ago

(P.S. It took a few more commits but I have the Gospel Desk API back up. 😬)

brianglass commented 6 months ago

@chadwhitacre, sorry, just noticed this. I'd need to look a little closer at this. My full calendar view depends on titles being missing to render each day properly. I could probably rewrite some of that, but it's not something I can change without consequences.

brianglass commented 5 months ago

@chadwhitacre, I forgot to mention the summary_title field. This should always be populated and is an attempt to pull the most appropriate thing from feasts, saints, or titles.