scripts for my gemini capsule
tcgnt: fix problems
Zach DeCook 2023-12-11
parent 6d8988b · commit c07fe9c
-rwxr-xr-xbiblestudy.py1
-rwxr-xr-xtcgnt.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/biblestudy.py b/biblestudy.py
index b3c8a54..71cea74 100755
--- a/biblestudy.py
+++ b/biblestudy.py
@@ -26,6 +26,7 @@ def main(qs):
printoeb([passages[0]], False, False)
printwebp([passages[0]], False, False)
printwebp([passages[0]], False, False, printStrongs=True)
+ print()
printtcgnt([passages[0]], False, False)
printtcgnt([passages[0]], False, False, printStrongs=True)
diff --git a/tcgnt.py b/tcgnt.py
index 3349ec0..bff5825 100755
--- a/tcgnt.py
+++ b/tcgnt.py
@@ -33,6 +33,8 @@ def printtcgnt(passages, title=True, plug=True, printStrongs=False):
inendc = False
bookn = passage.start.book
#eprint(bookn)
+ if bookn-38 < 2:
+ return
f = open(books[bookn-38])
startc = passage.start.chapter
startv= passage.start.verse