diff options
| author | Shyam Sunder | 2020-06-05 10:02:18 -0400 |
|---|---|---|
| committer | Shyam Sunder | 2020-06-05 10:02:18 -0400 |
| commit | ea623449e7c29801ab0a0ade043308937cca7506 (patch) | |
| tree | 889147f8bec12ef170bd31fb9a61403e66d542f8 /server/szurubooru/api | |
| parent | c5358f7f83ef49f51d5ba557dde1b16ce2c83d1d (diff) | |
server: format code to flake8
Diffstat (limited to 'server/szurubooru/api')
| -rw-r--r-- | server/szurubooru/api/info_api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/szurubooru/api/info_api.py b/server/szurubooru/api/info_api.py index b072147..1e2fd1d 100644 --- a/server/szurubooru/api/info_api.py +++ b/server/szurubooru/api/info_api.py @@ -10,7 +10,7 @@ _cache_result = None # type: Optional[int] def _get_disk_usage() -> int: - global _cache_time, _cache_result # pylint: disable=global-statement + global _cache_time, _cache_result threshold = timedelta(hours=48) now = datetime.utcnow() if _cache_time and _cache_time > now - threshold: |