whoogle-search/app
Ben Busby d2fac809ca
Fix mishandling of empty config environment variables
The recent change to cast bool config vars as ints to handle a '0' or
'1' value was shortsighted, since it doesn't allow for instances where
the variable is set to an empty value (or '' or any invalid/non-int
value).

This introduces a read_config_bool method for reading values that should
be a '0' or '1', but will default to False if not a digit (otherwise the
value will be cast as bool(int(value)) if "value" is a digit str).

Fixes #288
2021-04-14 10:42:41 -04:00
..
models Fix mishandling of empty config environment variables 2021-04-14 10:42:41 -04:00
static Replace remaining hardcoded theme values 2021-04-12 10:22:34 -04:00
templates Expand custom css theming support 2021-04-09 11:00:02 -04:00
utils Revert heroku app https upgrade fix 2021-04-05 11:00:56 -04:00
__init__.py Disable logging from imported modules 2021-04-09 09:26:16 -04:00
__main__.py Swap out Flask's default web server for Waitress (#32) 2020-05-12 17:14:55 -06:00
filter.py Expand custom css theming support 2021-04-09 11:00:02 -04:00
request.py Hotfix: Send generic "Mozilla" in user agent 2021-04-08 09:43:41 -04:00
routes.py Expand custom css theming support 2021-04-09 11:00:02 -04:00