Fix bug in twitter retweets

This commit is contained in:
Zeva Rose 2021-11-01 19:47:15 -06:00
parent d747e8c485
commit 11fdd09d01

View file

@ -222,7 +222,7 @@ class TwitterCog(commands.Cog):
) )
handlemap = {str(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: for to_update in context.selected_options:
t = Twitter.objects(guild=ctx.guild.id, id=ObjectId()).first() t = Twitter.objects(guild=ctx.guild.id, id=ObjectId(to_update)).first()
t.retweets = retweets t.retweets = retweets
t.save() t.save()
for row in components: for row in components: