code linting

This commit is contained in:
Lorenzo Venerandi
2026-02-22 16:27:59 +01:00
parent 57fa0ae5a3
commit b500b22041
4 changed files with 7 additions and 14 deletions

View File

@@ -59,9 +59,7 @@ def _migrate_ban_state_columns(cursor) -> List[str]:
}
for col_name, col_type in columns.items():
if not _column_exists(cursor, "ip_stats", col_name):
cursor.execute(
f"ALTER TABLE ip_stats ADD COLUMN {col_name} {col_type}"
)
cursor.execute(f"ALTER TABLE ip_stats ADD COLUMN {col_name} {col_type}")
added.append(col_name)
return added