Skip to content

Commit e71ae16

Browse files
committed
fix syntax
1 parent d259b58 commit e71ae16

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

crate/operator/restore_backup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,9 +1158,8 @@ async def remove_duplicated_tables(self, tables: Optional[List[str]] = None):
11581158
async with conn.cursor(timeout=120) as cursor:
11591159
if tables is not None:
11601160
gc_tables = self.get_gc_tables(cursor, tables)
1161-
where_stmt = (
1162-
f"t IN ({','.join(f"'{table}'" for table in gc_tables)})"
1163-
)
1161+
tables_str = ",".join(f"'{table}'" for table in gc_tables)
1162+
where_stmt = f"t IN ({tables_str})"
11641163
else:
11651164
where_stmt = "t LIKE 'gc.%%'"
11661165

0 commit comments

Comments
 (0)