exportを修正

This commit is contained in:
suti7yk5032 2024-08-23 02:09:13 +09:00
parent ef0bd4b509
commit 698e629063

View file

@ -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]),