From 5586b88833d65da400e0f3247a60269017368bbe Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 26 Jul 2020 18:51:17 +0200 Subject: [PATCH] Fix data.find_user --- royalnet/commands/commanddata.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/royalnet/commands/commanddata.py b/royalnet/commands/commanddata.py index 8182ed1a..82654738 100644 --- a/royalnet/commands/commanddata.py +++ b/royalnet/commands/commanddata.py @@ -5,8 +5,7 @@ import asyncio as aio import royalnet.utils as ru import io from .errors import UnsupportedError -from .commandinterface import CommandInterface -from royalnet.backpack.tables.aliases import Alias +from royalnet.backpack.tables.users import User if TYPE_CHECKING: from .keyboardkey import KeyboardKey @@ -83,7 +82,7 @@ class CommandData: Parameters: alias: the Alias to search for.""" - return await Alias.find_user(self._interface.alchemy, self.session, alias) + return await User.find(self.command.serf.alchemy, self.session, alias) @contextlib.asynccontextmanager async def keyboard(self, text, keys: List["KeyboardKey"]):