mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
✨ 适配新赛季 list
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
from typing import Literal, overload
|
||||
from uuid import UUID
|
||||
|
||||
from msgspec import to_builtins
|
||||
from nonebot.compat import type_validate_json
|
||||
from yarl import URL
|
||||
|
||||
@@ -87,4 +86,4 @@ async def records(
|
||||
|
||||
|
||||
async def get(url: URL, parameter: Parameter, extra_headers: dict | None = None) -> bytes:
|
||||
return await Cache.get(url % to_builtins(parameter), extra_headers)
|
||||
return await Cache.get(url % parameter.to_params(), extra_headers)
|
||||
|
||||
Reference in New Issue
Block a user