Skip to content

Commit

Permalink
Fix bug where a parameter had the wrong placeholder name in a db query.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sachaa-Thanasius committed Jul 22, 2024
1 parent 1f4e61d commit 1277adc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exts/snowball/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async def upsert_record(
# Upsert the relevant users and guilds to the database before adding a snowball record.
user_stmt = "INSERT INTO users (user_id) VALUES ($1) ON CONFLICT (user_id) DO NOTHING;"
await conn.execute(user_stmt, member.id)
guild_stmt = "INSERT INTO guilds (guild_id) VALUES ($2) ON CONFLICT (guild_id) DO NOTHING;"
guild_stmt = "INSERT INTO guilds (guild_id) VALUES ($1) ON CONFLICT (guild_id) DO NOTHING;"
await conn.execute(guild_stmt, member.guild.id)
member_stmt = (
"INSERT INTO members (guild_id, user_id) VALUES ($1, $2) ON CONFLICT (guild_id, user_id) DO NOTHING;"
Expand Down

0 comments on commit 1277adc

Please sign in to comment.