Skip to content

Commit

Permalink
🐛 修复漏洞
Browse files Browse the repository at this point in the history
  • Loading branch information
SilianZ committed Mar 30, 2024
1 parent 5f7de05 commit 2adf22a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,9 +726,9 @@ async def check_update():
async with aiohttp.ClientSession(base_url=github_api) as session:
logger.info("Checking update...")
try:
async with session.get("/repos/TTB-Network/python-openbmclapi/tags") as req:
async with session.get("/repos/TTB-Network/python-openbmclapi/releases/latest") as req:
req.raise_for_status()
fetched_version: str = (await req.json())[0]["name"]
fetched_version: str = (await req.json())["tag_name"]
if fetched_version != VERSION:
logger.success(f"New version found: {fetched_version}!")
else:
Expand Down

0 comments on commit 2adf22a

Please sign in to comment.