From 11fdd09d0127ec3cfdc0afc70a5e7fdac324957d Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Mon, 1 Nov 2021 19:47:15 -0600 Subject: [PATCH] Fix bug in twitter retweets --- jarvis/cogs/twitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jarvis/cogs/twitter.py b/jarvis/cogs/twitter.py index 8f67752..7826b2c 100644 --- a/jarvis/cogs/twitter.py +++ b/jarvis/cogs/twitter.py @@ -222,7 +222,7 @@ class TwitterCog(commands.Cog): ) 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 = Twitter.objects(guild=ctx.guild.id, id=ObjectId(to_update)).first() t.retweets = retweets t.save() for row in components: