Bug fixes for Login and WELIB (#242)

Fix login (when using latest CWA in dev)
Add PRIORITIZE_WELIB option
libgen seems to be back, revert the url rewrite

Should fix #242 and #226
This commit is contained in:
CaliBrain
2025-08-22 18:21:55 -04:00
committed by GitHub
parent 5f6a81d97d
commit 09bd5ae9f0
4 changed files with 16 additions and 7 deletions
+3 -1
View File
@@ -25,7 +25,9 @@ _BOOK_LANGUAGE = os.getenv("BOOK_LANGUAGE", "en").lower()
_CUSTOM_SCRIPT = os.getenv("CUSTOM_SCRIPT", "").strip()
FLASK_HOST = os.getenv("FLASK_HOST", "0.0.0.0")
FLASK_PORT = int(os.getenv("FLASK_PORT", "8084"))
DEBUG = string_to_bool(os.getenv("DEBUG", "False"))
DEBUG = string_to_bool(os.getenv("DEBUG", "false"))
PRIORITIZE_WELIB = string_to_bool(os.getenv("PRIORITIZE_WELIB", "false"))
# If debug is true, we want to log everything
if DEBUG:
LOG_LEVEL = "DEBUG"