Spaces:
Runtime error
Runtime error
| BIBLE_BOOKS = { | |
| "genesis": "01", | |
| "exodus": "02", | |
| "leviticus": "03", | |
| "numbers": "04", | |
| "deuteronomy": "05", | |
| "joshua": "06", | |
| "judges": "07", | |
| "ruth": "08", | |
| "1 samuel": "09", | |
| "2 samuel": "10", | |
| "1 kings": "11", | |
| "2 kings": "12", | |
| "1 chronicles": "13", | |
| "2 chronicles": "14", | |
| "ezra": "15", | |
| "nehemiah": "16", | |
| "esther": "17", | |
| "job": "18", | |
| "psalms": "19", | |
| "proverbs": "20", | |
| "ecclesiastes": "21", | |
| "song of solomon": "22", | |
| "isaiah": "23", | |
| "jeremiah": "24", | |
| "lamentations": "25", | |
| "ezekiel": "26", | |
| "daniel": "27", | |
| "hosea": "28", | |
| "joel": "29", | |
| "amos": "30", | |
| "obadiah": "31", | |
| "jonah": "32", | |
| "micah": "33", | |
| "nahum": "34", | |
| "habakkuk": "35", | |
| "zephaniah": "36", | |
| "haggai": "37", | |
| "zechariah": "38", | |
| "malachi": "39", | |
| "matthew": "40", | |
| "mark": "41", | |
| "luke": "42", | |
| "john": "43", | |
| "acts": "44", | |
| "romans": "45", | |
| "1 corinthians": "46", | |
| "2 corinthians": "47", | |
| "galatians": "48", | |
| "ephesians": "49", | |
| "philippians": "50", | |
| "colossians": "51", | |
| "1 thessalonians": "52", | |
| "2 thessalonians": "53", | |
| "1 timothy": "54", | |
| "2 timothy": "55", | |
| "titus": "56", | |
| "philemon": "57", | |
| "hebrews": "58", | |
| "james": "59", | |
| "1 peter": "60", | |
| "2 peter": "61", | |
| "1 john": "62", | |
| "2 john": "63", | |
| "3 john": "64", | |
| "jude": "65", | |
| "revelation": "66" | |
| } | |
| def get_book_number(book_name: str) -> str: | |
| """Convert book name to its number""" | |
| return BIBLE_BOOKS.get(book_name.lower(), "") | |