chore: adhere to ruff's C (#2379)

This commit is contained in:
dni ⚡ 2024-04-03 17:56:05 +02:00 committed by GitHub
parent cd66b7d70c
commit e0b7d2f739
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 43 additions and 41 deletions

View file

@ -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});