csv出力のコード修正

This commit is contained in:
suti7yk5032 2024-07-07 17:43:36 +09:00
parent f26e0d9ad9
commit 8b7e7a2a65

View file

@ -196,7 +196,7 @@ class Bot(discord.Client):
cursor = dislocker.db.cursor()
# メインテーブルの列情報を取得user_idを除く
cursor.execute(sql.SQL("SELECT * FROM {} LIMIT 0").format(sql.Identifier(main_table)))
main_columns = [desc[0] for desc in cur.description if desc[0] != 'member_id']
main_columns = [desc[0] for desc in cursor.description if desc[0] != 'member_id']
# クエリを作成(列名を明確に指定)
query = sql.SQL("""