csv出力のコード修正
This commit is contained in:
parent
f26e0d9ad9
commit
8b7e7a2a65
1 changed files with 1 additions and 1 deletions
|
@ -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("""
|
||||
|
|
Loading…
Reference in a new issue