Skip to content

Commit 5342eec

Browse files
committed
use timedelta for default ttl value
1 parent 9195fa6 commit 5342eec

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

openml/_api/setup/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import annotations
22

33
from dataclasses import dataclass, field
4+
from datetime import timedelta
45

56
from openml.enums import APIVersion, RetryPolicy
67

@@ -58,6 +59,6 @@ class Config:
5859
cache: CacheConfig = field(
5960
default_factory=lambda: CacheConfig(
6061
dir=str(_resolve_default_cache_dir()),
61-
ttl=60 * 60 * 24 * 7,
62+
ttl=int(timedelta(weeks=1).total_seconds()),
6263
)
6364
)

0 commit comments

Comments
 (0)