fix: changing stuff in the new_guild_generation method
This commit is contained in:
parent
074569465b
commit
3af564f9cd
1 changed files with 2 additions and 2 deletions
|
@ -38,9 +38,9 @@ class SugonCredit(commands.Cog):
|
||||||
con = sqlite3.connect(self.data_path)
|
con = sqlite3.connect(self.data_path)
|
||||||
cur = con.cursor()
|
cur = con.cursor()
|
||||||
try:
|
try:
|
||||||
cur.execute(f"SELECT 1 FROM {guild_id} LIMIT 1;")
|
cur.execute(f"SELECT 1 FROM '{guild_id}' LIMIT 1;")
|
||||||
except sqlite3.OperationalError:
|
except sqlite3.OperationalError:
|
||||||
cur.execute(f"CREATE TABLE {guild_id} (user_id TEXT, balance REAL);")
|
cur.execute(f"CREATE TABLE '{guild_id}' (user_id TEXT, balance REAL);")
|
||||||
con.commit()
|
con.commit()
|
||||||
con.close()
|
con.close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue