Skip to content

Commit

Permalink
Now the verse of the day follows the saved version
Browse files Browse the repository at this point in the history
With this change, the get_verse_of_the_day function has been changed to be asynchronous, so all of the functions calling the function now have to use asyncio.run to call the get_verse_of_the_day function.

The verse of the day will default to NIV if the passage isn't available in a specific version (DRA in particular doesn't have Psalms).

The "chats_version" key in the database now stores a dictionary instead of a list, which makes it easier to work with. The increase in storage size also isn't much, which is great. A lot of functions that interact with the "chats_version" key in the database were rewritten to support the new data structure.

Removed the obtain_version function as it is obsolete. The function to get the version is now a one-liner in the get_version function.

Also added more spacing between the function definitions for greater readability,

Also cleaned up the get_webpages function by removing unnecessary lines of code.
  • Loading branch information
hankertrix committed Aug 5, 2023
1 parent 0570c9e commit 90b9dfc
Showing 1 changed file with 164 additions and 88 deletions.
Loading

0 comments on commit 90b9dfc

Please sign in to comment.