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

+12 -3
View File
@@ -35,7 +35,10 @@ async def create_attachment_point_name(
):
apn = await apn_crud.create(db, name=payload.name)
await audit_crud.log(
db, actor=actor, action="create", resource_type="AttachmentPointName",
db,
actor=actor,
action="create",
resource_type="AttachmentPointName",
resource_id=apn.id,
description=audit_crud.describe_create("AttachmentPointName", apn.id, apn.name),
)
@@ -67,7 +70,10 @@ async def update_attachment_point_name(
changes = payload.model_dump(exclude_unset=True)
apn = await apn_crud.update(db, apn, changes)
await audit_crud.log(
db, actor=actor, action="update", resource_type="AttachmentPointName",
db,
actor=actor,
action="update",
resource_type="AttachmentPointName",
resource_id=apn.id,
description=audit_crud.describe_update("AttachmentPointName", apn.id, changes),
)
@@ -86,7 +92,10 @@ async def delete_attachment_point_name(
name = apn.name
await apn_crud.delete(db, apn)
await audit_crud.log(
db, actor=actor, action="delete", resource_type="AttachmentPointName",
db,
actor=actor,
action="delete",
resource_type="AttachmentPointName",
resource_id=apn_id,
description=audit_crud.describe_delete("AttachmentPointName", apn_id, name),
)