From d747e8c4853dc2d6d14187aaacead729085f16a6 Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Mon, 1 Nov 2021 19:04:12 -0600 Subject: [PATCH] Fix display bug (again) --- jarvis/cogs/twitter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jarvis/cogs/twitter.py b/jarvis/cogs/twitter.py index f09b42e..8f67752 100644 --- a/jarvis/cogs/twitter.py +++ b/jarvis/cogs/twitter.py @@ -147,7 +147,7 @@ class TwitterCog(commands.Cog): return options = [] - handlemap = {x.id: x.handle for x in twitters} + handlemap = {str(x.id): x.handle for x in twitters} for twitter in twitters: option = create_select_option(label=twitter.handle, value=str(twitter.id)) options.append(option) @@ -220,7 +220,7 @@ class TwitterCog(commands.Cog): context = await wait_for_component( self.bot, check=lambda x: ctx.author.id == x.author.id, messages=message, timeout=60 * 5 ) - handlemap = {x.id: x.handle for x in twitters} + handlemap = {str(x.id): x.handle for x in twitters} for to_update in context.selected_options: t = Twitter.objects(guild=ctx.guild.id, id=ObjectId()).first() t.retweets = retweets