exportを修正
This commit is contained in:
parent
ef0bd4b509
commit
698e629063
1 changed files with 1 additions and 1 deletions
|
@ -515,7 +515,7 @@ class Bot(discord.Client):
|
|||
query = sql.SQL("""
|
||||
SELECT {main_columns}, {related_table}.name
|
||||
FROM {main_table}
|
||||
LEFT JOIN {related_table} ON {main_table}.member_id = {related_table}.id
|
||||
LEFT JOIN {related_table} ON {main_table}.member_id = {related_table}.member_id
|
||||
ORDER BY id
|
||||
""").format(
|
||||
main_columns=sql.SQL(', ').join([sql.SQL("{}.{}").format(sql.Identifier(main_table), sql.Identifier(col)) for col in main_columns]),
|
||||
|
|
Loading…
Reference in a new issue