Reformatting everything with black

This commit is contained in:
Ian Roddis committed 2026-07-14 14:36:49 -03:00
1 parent 7bd07f084a
commit 8185f1f8b3
48 files changed
+1000 -348

No files matched your search

+4 -4
View File
@@ -13,7 +13,9 @@ async def list_all(
) -> list[ClampConnection]:
result = await db.execute(
select(ClampConnection)
.order_by(ClampConnection.min_mm.nulls_last(), ClampConnection.min_in.nulls_last())
.order_by(
ClampConnection.min_mm.nulls_last(), ClampConnection.min_in.nulls_last()
)
.offset(skip)
.limit(limit)
)
@@ -35,9 +37,7 @@ async def create(
return cc
async def update(
db: AsyncSession, cc: ClampConnection, data: dict
) -> ClampConnection:
async def update(db: AsyncSession, cc: ClampConnection, data: dict) -> ClampConnection:
for field, value in data.items():
setattr(cc, field, value)
await db.commit()