mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Update info_api.py
changed options from 1/0 to true/false
This commit is contained in:
@ -11,7 +11,7 @@ _cache_result = None # type: Optional[int]
|
|||||||
|
|
||||||
def _get_disk_usage() -> int:
|
def _get_disk_usage() -> int:
|
||||||
total_size = 0
|
total_size = 0
|
||||||
if config.config["data_dir_get_usage"] == 1:
|
if config.config["data_dir_get_usage"]:
|
||||||
global _cache_time, _cache_result
|
global _cache_time, _cache_result
|
||||||
threshold = timedelta(hours=48)
|
threshold = timedelta(hours=48)
|
||||||
now = datetime.utcnow()
|
now = datetime.utcnow()
|
||||||
|
Reference in New Issue
Block a user