chore: adhere to ruff's C (#2379)
This commit is contained in:
+2
-2
@@ -152,8 +152,8 @@ def migrate_db(file: str, schema: str, exclude_tables: List[str] = []):
|
||||
|
||||
|
||||
def build_insert_query(schema, tableName, columns):
|
||||
to_columns = ", ".join(map(lambda column: f'"{column[1].lower()}"', columns))
|
||||
values = ", ".join(map(lambda column: to_column_type(column[2]), columns))
|
||||
to_columns = ", ".join([f'"{column[1].lower()}"' for column in columns])
|
||||
values = ", ".join([to_column_type(column[2]) for column in columns])
|
||||
return f"""
|
||||
INSERT INTO {schema}.{tableName}({to_columns})
|
||||
VALUES ({values});
|
||||
|
||||
Reference in New Issue
Block a user