fix: changing stuff in the new_guild_generation method

This commit is contained in:
Seaswimmer 2023-08-01 18:05:49 -04:00
parent 074569465b
commit 3af564f9cd
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -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()