Skip to content

Commit

Permalink
fix: インスタンス変数にアクセスできない
Browse files Browse the repository at this point in the history
  • Loading branch information
yupix committed Feb 24, 2024
1 parent b8f6937 commit 1056071
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mipac/actions/admins/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

class AdminAccountActions(AbstractAction):
def __init__(self, *, session: HTTPClient, client: ClientManager):
self.__session: HTTPClient = session
self.__client: ClientManager = client
self._session: HTTPClient = session
self._client: ClientManager = client

async def create(self, username: str, password: str): # TODO: 多分UserDetailed + tokenってキー
"""ユーザーを作成します
Expand All @@ -28,7 +28,7 @@ async def create(self, username: str, password: str): # TODO: 多分UserDetaile
"""

data = {"username": username, "password": password}
res = await self.__session.request(
res = await self._session.request(
Route("POST", "/api/admin/accounts/create"),
json=data,
)
Expand Down

0 comments on commit 1056071

Please sign in to comment.