From e831ef59215fadfc3c7daf11ddcc6c77c6ede7a3 Mon Sep 17 00:00:00 2001 From: Ske Date: Tue, 31 Jul 2018 01:50:11 +0200 Subject: [PATCH] Fixed account linking when creating new systems on import --- src/pluralkit/bot/commands/import_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pluralkit/bot/commands/import_commands.py b/src/pluralkit/bot/commands/import_commands.py index d9fe9094..23d25698 100644 --- a/src/pluralkit/bot/commands/import_commands.py +++ b/src/pluralkit/bot/commands/import_commands.py @@ -101,7 +101,7 @@ async def import_tupperware(ctx: CommandContext, args: List[str]): hid = utils.generate_hid() logger.debug("Creating new system (hid={})...".format(hid)) system = await db.create_system(ctx.conn, system_name=None, system_hid=hid) - await db.link_account(ctx.conn, system_id=system["id"], account_id=ctx.message.author.id) + await db.link_account(ctx.conn, system_id=system.id, account_id=ctx.message.author.id) for embed in embeds: for field in embed["fields"]: