Fix display bug (again)
This commit is contained in:
parent
eaa216c1db
commit
d747e8c485
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue