From 170b01e64438063ed6b6ae8102c0578ffe139f95 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Fri, 4 Sep 2020 07:05:53 +0100 Subject: [PATCH] Fixing typo in sql statement --- cogs/libs/starboard.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cogs/libs/starboard.py b/cogs/libs/starboard.py index d7e7b39f..617ecbf4 100644 --- a/cogs/libs/starboard.py +++ b/cogs/libs/starboard.py @@ -58,8 +58,7 @@ class Starboard: # Update the stars that the message has in the database and then store the message id's try: - update = """UPDATE starboard_messages SET stars = $1, star_message_id = $2 - WHERE root_message_id = $3 AND guild_id = $4""" + update = """UPDATE starboard_messages SET stars = $1, star_message_id = $2 WHERE root_message_id = $3 AND guild_id = $4""" await conn.execute(update, new_stars, star_message.id, message.id, payload.guild_id) # Catch errors @@ -104,7 +103,7 @@ class Starboard: # Update the stars that the message has in the database and then store the message id's try: - update = """UPDATE starboard_messages SET stars = $1, WHERE root_message_id = $2 AND guild_id = $3""" + update = """UPDATE starboard_messages SET stars = $1 WHERE root_message_id = $2 AND guild_id = $3""" await conn.execute(update, new_stars, message.id, payload.guild_id) # Catch errors