mirror of
https://github.com/benbusby/whoogle-search
synced 2024-11-01 03:20:30 +00:00
baa7a87efb
Config boolean environment variables need to be cast to ints, since they are set or unset using 0 and 1. Previously they were interpreted as (pseudocode) read_var(name, default=False), which meant that setting CONFIG_VAR=0 would enable that variable since Python reads environment variables as strings, and '0' is truthy. This updates the previous logic to (still pseudocode) int(read_var(name, default='0')). Fixes #279 |
||
---|---|---|
.. | ||
__init__.py | ||
conftest.py | ||
test_autocomplete.py | ||
test_misc.py | ||
test_results.py | ||
test_routes.py |