1
0
Fork 0
mirror of https://github.com/qurator-spk/modstool.git synced 2025-08-16 13:09:53 +02:00

🎨 Remove unused var + use 'not in'

This commit is contained in:
Mike Gerber 2025-06-13 19:35:48 +02:00
parent 003c8d77b9
commit 01c1762d32
2 changed files with 2 additions and 2 deletions

View file

@ -356,7 +356,7 @@ def insert_into_db(con, table, d: Dict):
# Add columns if necessary
for k in d.keys():
if not k in current_columns[table]:
if k not in current_columns[table]:
assert valid_column_key(k), f'"{k}" is not a valid column name'
current_columns[table].append(k)
con.execute(f'ALTER TABLE {table} ADD COLUMN "{k}"')