Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 861d17f490 | |||
| 05c662eb82 |
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
apikey.py
|
||||
BIN
__pycache__/apikey.cpython-313.pyc
Normal file
BIN
__pycache__/apikey.cpython-313.pyc
Normal file
Binary file not shown.
7
boot.py
Normal file
7
boot.py
Normal file
@ -0,0 +1,7 @@
|
||||
# boot.py -- run on boot-up
|
||||
# can run arbitrary Python, but best to keep it minimal
|
||||
|
||||
import pyb
|
||||
#pyb.main('main.py') # main script to run after this one
|
||||
#pyb.usb_mode('CDC+MSC') # act as a serial and a storage device
|
||||
#pyb.usb_mode('CDC+HID') # act as a serial device and a mouse
|
||||
@ -3,12 +3,12 @@ from Levenshtein import distance as lev
|
||||
import time
|
||||
import re
|
||||
import random
|
||||
import timeit
|
||||
from timeout import timeout
|
||||
import datetime
|
||||
import apikey
|
||||
|
||||
VERSION = "en-lsv"
|
||||
APIKEY = "Token f562cf2d890151d682065696dacdc0f86938a18e"
|
||||
APIKEY = apikey.KEY
|
||||
HEADERS = {"Authorization": APIKEY}
|
||||
BIBLE_BOOKS = [
|
||||
"Genesis",
|
||||
@ -127,8 +127,9 @@ def parse_verse():
|
||||
pass_extract = re.split(r"\[\d{1,3}\]", str(passage[0]))
|
||||
simplified = re.sub(r"(^\s|\s{2,}|\s\(ESV\)$)", "", pass_extract[1])
|
||||
simplified2 = re.sub(r"(\\n|,[a-zA-Z])", " ", simplified)
|
||||
if "(1)Footnotes" in simplified2:
|
||||
if "Footnotes" in simplified2:
|
||||
new_list = simplified2.split("(1)Footnotes")[0]
|
||||
new_list = new_list.replace("(1)", " ")
|
||||
print(new_list)
|
||||
else:
|
||||
new_list = simplified2
|
||||
|
||||
Reference in New Issue
Block a user