From 6ec77a4113cd559f6bef79ab1e17ad9e56c5d88a Mon Sep 17 00:00:00 2001 From: yupix Date: Tue, 3 Oct 2023 21:43:40 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20login=E5=AE=9F=E8=A1=8C=E6=99=82?= =?UTF-8?q?=E3=81=ABmeta=E3=82=92=E5=8F=96=E5=BE=97=E3=81=99=E3=82=8B?= =?UTF-8?q?=E3=81=AE=E3=82=92=E5=BB=83=E6=AD=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mipac/http.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mipac/http.py b/mipac/http.py index 99d7cc8..eabca80 100644 --- a/mipac/http.py +++ b/mipac/http.py @@ -12,7 +12,6 @@ from mipac import __version__ from mipac.config import config from mipac.errors.base import APIError from mipac.types.endpoints import ENDPOINTS -from mipac.types.meta import IMeta from mipac.types.user import IMeDetailed from mipac.utils.format import remove_dict_empty, upper_to_lower from mipac.utils.util import COLORS, _from_json @@ -137,10 +136,5 @@ REQUEST:{COLORS.reset} self._session = aiohttp.ClientSession(ws_response_class=MisskeyClientWebSocketResponse) if self._token: data: IMeDetailed = await self.request(Route("POST", "/api/i"), auth=True) - if config.use_version_autodetect: - meta: IMeta = await self.request(Route("POST", "/api/meta"), auth=True) - use_version = int(meta["version"].split(".")[0]) - if isinstance(use_version, int) and use_version in (13, 12, 11): - config.use_version = use_version config.from_dict(account_id=data["id"]) return data