Update info_api.py

changed options from 1/0 to true/false
This commit is contained in:
Theenoro 2024-03-18 22:39:21 +01:00 committed by GitHub
parent d34d9a972d
commit 19aa5acd62
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,7 +11,7 @@ _cache_result = None # type: Optional[int]
def _get_disk_usage() -> int:
total_size = 0
if config.config["data_dir_get_usage"] == 1:
if config.config["data_dir_get_usage"]:
global _cache_time, _cache_result
threshold = timedelta(hours=48)
now = datetime.utcnow()