Fix env CACHE_DISABLED to bool converting

This commit is contained in:
norohind 2021-11-28 21:46:49 +03:00
parent 2e3c6983b0
commit 7d132ecb5f
Signed by: norohind
GPG Key ID: 01C3BECC26FB59E1

View File

@ -1,6 +1,6 @@
import os
cache_disabled: bool = bool(os.getenv('CACHE_DISABLED', True))
cache_disabled: bool = os.getenv('CACHE_DISABLED', 'True').lower() == 'true'
DBMS_name = os.getenv('DB_NAME')