Reformatting everything with black
This commit is contained in:
1 parent
7bd07f084a
commit
8185f1f8b3
48 files changed
+1000
-348
No files matched your search
+12
-3
@@ -29,7 +29,10 @@ async def create_part_colour(
|
||||
):
|
||||
pc = await part_colour_crud.create(db, name=payload.name)
|
||||
await audit_crud.log(
|
||||
db, actor=actor, action="create", resource_type="PartColour",
|
||||
db,
|
||||
actor=actor,
|
||||
action="create",
|
||||
resource_type="PartColour",
|
||||
resource_id=pc.id,
|
||||
description=audit_crud.describe_create("PartColour", pc.id, pc.name),
|
||||
)
|
||||
@@ -61,7 +64,10 @@ async def update_part_colour(
|
||||
changes = payload.model_dump(exclude_unset=True)
|
||||
pc = await part_colour_crud.update(db, pc, changes)
|
||||
await audit_crud.log(
|
||||
db, actor=actor, action="update", resource_type="PartColour",
|
||||
db,
|
||||
actor=actor,
|
||||
action="update",
|
||||
resource_type="PartColour",
|
||||
resource_id=pc.id,
|
||||
description=audit_crud.describe_update("PartColour", pc.id, changes),
|
||||
)
|
||||
@@ -80,7 +86,10 @@ async def delete_part_colour(
|
||||
name = pc.name
|
||||
await part_colour_crud.delete(db, pc)
|
||||
await audit_crud.log(
|
||||
db, actor=actor, action="delete", resource_type="PartColour",
|
||||
db,
|
||||
actor=actor,
|
||||
action="delete",
|
||||
resource_type="PartColour",
|
||||
resource_id=part_colour_id,
|
||||
description=audit_crud.describe_delete("PartColour", part_colour_id, name),
|
||||
)
|
||||
Reference in new issue
Block a user