Skip to content

Commit

Permalink
improved web API output
Browse files Browse the repository at this point in the history
  • Loading branch information
eliranwong committed Nov 1, 2024
1 parent 2b8df8e commit 0bd5d95
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
# https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/
setup(
name=package,
version="0.1.51",
version="0.1.52",
python_requires=">=3.8, <3.13",
description=f"UniqueBible App is a cross-platform & offline bible application, integrated with high-quality resources and unique features. Developers: Eliran Wong and Oliver Tseng",
long_description=long_description,
Expand Down
17 changes: 16 additions & 1 deletion uniquebible/util/RemoteHttpHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,19 @@ def do_GET(self):
else:
self.command = "John 3:16-16"
# tweak configs
showUserNoteIndicator = config.showUserNoteIndicator
showBibleNoteIndicator = config.showBibleNoteIndicator
displayVerseAudioBibleIcon = config.displayVerseAudioBibleIcon
showHebrewGreekWordAudioLinks = config.showHebrewGreekWordAudioLinks
showHebrewGreekWordAudioLinksInMIB = config.showHebrewGreekWordAudioLinksInMIB
displayChapterMenuTogetherWithBibleChapter = config.displayChapterMenuTogetherWithBibleChapter
config.displayChapterMenuTogetherWithBibleChapter = False
addFavouriteToMultiRef = config.addFavouriteToMultiRef
config.showUserNoteIndicator = False
config.showBibleNoteIndicator = False
config.displayVerseAudioBibleIcon = False
config.showHebrewGreekWordAudioLinks = False
config.showHebrewGreekWordAudioLinksInMIB = False
config.displayChapterMenuTogetherWithBibleChapter = False
config.addFavouriteToMultiRef = False
# output
self.commonHeader()
Expand All @@ -395,6 +405,11 @@ def do_GET(self):
# restore user config
config.addFavouriteToMultiRef = addFavouriteToMultiRef
config.displayChapterMenuTogetherWithBibleChapter = displayChapterMenuTogetherWithBibleChapter
config.showUserNoteIndicator = showUserNoteIndicator
config.showBibleNoteIndicator = showBibleNoteIndicator
config.displayVerseAudioBibleIcon = displayVerseAudioBibleIcon
config.showHebrewGreekWordAudioLinks = showHebrewGreekWordAudioLinks
config.showHebrewGreekWordAudioLinksInMIB = showHebrewGreekWordAudioLinksInMIB
elif self.ignoreCommand(self.path):
print(f"Ignoring command: {self.path}")
self.blankPage()
Expand Down

0 comments on commit 0bd5d95

Please sign in to comment.