fix: rename loop variable to avoid shadowing SQLAlchemy table import (F402)

This commit is contained in:
Flea Flicker
2026-05-28 19:25:38 +00:00
parent ebf69976d4
commit f18df8a40c
+2 -2
View File
@@ -18,8 +18,8 @@ from cartsnitch_api.models.user import User, UserStoreAccount
def engine():
eng = create_engine("sqlite:///:memory:")
for table in Base.metadata.tables.values():
for col in table.columns.values():
for tbl in Base.metadata.tables.values():
for col in tbl.columns.values():
sd = col.server_default
if sd is not None:
if not hasattr(sd, "expression"):