Marriages are unique per guild now

pull/8/head
sgoudham 5 years ago
parent 5c20261810
commit a83af586fd

@ -29,8 +29,8 @@ class Relationship(commands.Cog):
with db.connection() as conn:
# Get the author's row from the Members Table
select_query = """SELECT * FROM members WHERE discordID = (?)"""
val = ctx.author.id,
select_query = """SELECT * FROM members WHERE discordID = (?) and guildID = (?)"""
val = ctx.author.id, guild.id,
cursor = conn.cursor()
# Execute the SQL Query
@ -114,8 +114,8 @@ class Relationship(commands.Cog):
with db.connection() as conn:
# Get the author's row from the Members Table
select_query = """SELECT * FROM members WHERE discordID = (?)"""
val = ctx.author.id,
select_query = """SELECT * FROM members WHERE discordID = (?) and guildID = (?)"""
val = ctx.author.id, guild.id,
cursor = conn.cursor()
# Execute the SQL Query

Loading…
Cancel
Save