From 3af564f9cd0cfa402143419315cbcb82f2c1ad8f Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 1 Aug 2023 18:05:49 -0400 Subject: [PATCH] fix: changing stuff in the new_guild_generation method --- sugoncredit/sugoncredit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sugoncredit/sugoncredit.py b/sugoncredit/sugoncredit.py index ace4f7a..722e7a5 100644 --- a/sugoncredit/sugoncredit.py +++ b/sugoncredit/sugoncredit.py @@ -38,9 +38,9 @@ class SugonCredit(commands.Cog): con = sqlite3.connect(self.data_path) cur = con.cursor() try: - cur.execute(f"SELECT 1 FROM {guild_id} LIMIT 1;") + cur.execute(f"SELECT 1 FROM '{guild_id}' LIMIT 1;") 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.close()