e
This commit is contained in:
parent
a26fb90534
commit
00000d9121
2 changed files with 1 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ log = get_logger(__name__)
|
||||||
|
|
||||||
urls: dict[str, dict[str, str | float]] = {}
|
urls: dict[str, dict[str, str | float]] = {}
|
||||||
|
|
||||||
API_FILE = Cache(Path(__file__).parent / "caches" / "ppv_api.json", exp=86_400)
|
API_FILE = Cache(Path(__file__).parent / "caches" / "ppv_api.json", exp=28_800)
|
||||||
|
|
||||||
CACHE_FILE = Cache(Path(__file__).parent / "caches" / "ppv.json", exp=10_800)
|
CACHE_FILE = Cache(Path(__file__).parent / "caches" / "ppv.json", exp=10_800)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ from .config import Time
|
||||||
|
|
||||||
|
|
||||||
class Cache:
|
class Cache:
|
||||||
|
|
||||||
def __init__(self, file: Path, exp: int | float) -> None:
|
def __init__(self, file: Path, exp: int | float) -> None:
|
||||||
self.file = file
|
self.file = file
|
||||||
self.exp = exp
|
self.exp = exp
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue