Skip to content

Commit

Permalink
v35.18; fixed bible data
Browse files Browse the repository at this point in the history
  • Loading branch information
eliranwong committed Oct 28, 2023
1 parent 61e2e2b commit a914ef2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion UniqueBibleAppVersion.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
35.17
35.18
3 changes: 3 additions & 0 deletions latest_changes.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Changes in 35.18:
* fixed bible data

Changes in 35.17:
* removed extra spaces in terminal mode display

Expand Down
8 changes: 4 additions & 4 deletions patches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1384,12 +1384,12 @@
(35.12, "file", "plugins/terminal/generate reference table from latest content.py")
(35.12, "file", "plugins/terminal/open html content with w3m.py")
(35.13, "file", "util/CrossPlatform.py")
(35.13, "file", "util/TextCommandParser.py")
(35.13, "file", "util/TextEditorUtility.py")
(35.14, "file", "util/ConfigUtil.py")
(35.16, "file", "util/VlcUtil.py")
(35.16, "file", "util/LocalCliHandler.py")
(35.17, "file", "util/TextUtil.py")
(35.17, "file", "patches.txt")
(35.17, "file", "UniqueBibleAppVersion.txt")
(35.17, "file", "latest_changes.txt")
(35.18, "file", "util/TextCommandParser.py")
(35.18, "file", "patches.txt")
(35.18, "file", "UniqueBibleAppVersion.txt")
(35.18, "file", "latest_changes.txt")
4 changes: 3 additions & 1 deletion util/TextCommandParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1162,6 +1162,8 @@ def databaseNotInstalled(self, keyword):

# return invalid command
def invalidCommand(self, source="main"):
if config.developer:
print(traceback.format_exc())
return (source, "INVALID_COMMAND_ENTERED", {})

# return no audio
Expand Down Expand Up @@ -4059,7 +4061,7 @@ def textDayAudioPlus(self, command, source):
def textData(self, command, source):
config.dataset = command
filepath = os.path.join("plugins", "menu", "Bible Data", "{0}.txt".format(command))
if not os.path.isfile("filepath) or not (Tabulate" in config.enabled):
if not os.path.isfile(filepath) or not ("Tabulate" in config.enabled):
return self.invalidCommand("study")
with open(filepath, 'r', encoding='utf8') as fileObj:
dataList = fileObj.read().split("\n")
Expand Down

0 comments on commit a914ef2

Please sign in to comment.