mirror of
https://github.com/KimigaiiWuyi/GenshinUID.git
synced 2025-05-06 11:43:45 +08:00
🐛 修复版本深渊
的路径问题
This commit is contained in:
parent
6964b91801
commit
a9b4dda8cb
@ -174,7 +174,7 @@ async def _get_data_from_url(
|
||||
url: str, path: Path, expire_sec: Optional[float] = None
|
||||
) -> Dict:
|
||||
time_difference = 10
|
||||
if expire_sec is not None:
|
||||
if path.exists() and expire_sec is not None:
|
||||
modified_time = path.stat().st_mtime
|
||||
modified_datetime = datetime.datetime.fromtimestamp(modified_time)
|
||||
current_datetime = datetime.datetime.now()
|
||||
|
Loading…
x
Reference in New Issue
Block a user