From 36a04b91d0f51bc68ea9f1a65c91d8486e256d22 Mon Sep 17 00:00:00 2001 From: Gregoo Date: Mon, 27 Jan 2025 18:40:51 +0100 Subject: [PATCH] Remove confusing reference to number for sets --- bricktracker/views/set.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/bricktracker/views/set.py b/bricktracker/views/set.py index 1683175..3e2304c 100644 --- a/bricktracker/views/set.py +++ b/bricktracker/views/set.py @@ -47,8 +47,8 @@ def update_status(*, id: str, checkbox_id: str) -> Response: brickset.update_status(checkbox, value) # Info - logger.info('Set {number} ({id}): status "{status}" changed to "{state}"'.format( # noqa: E501 - number=brickset.fields.set, + logger.info('Set {set} ({id}): status "{status}" changed to "{state}"'.format( # noqa: E501 + set=brickset.fields.set, id=brickset.fields.id, status=checkbox.fields.name, state=value, @@ -77,8 +77,8 @@ def do_delete(*, id: str) -> Response: brickset.delete() # Info - logger.info('Set {number} ({id}): deleted'.format( - number=brickset.fields.set, + logger.info('Set {set} ({id}): deleted'.format( + set=brickset.fields.set, id=brickset.fields.id, )) @@ -125,8 +125,8 @@ def missing_minifigure_part(*, id: str, figure: str, part: str) -> Response: brickpart.update_missing(missing) # Info - logger.info('Set {number} ({id}): updated minifigure ({figure}) part ({part}) missing count to {missing}'.format( # noqa: E501 - number=brickset.fields.set, + logger.info('Set {set} ({id}): updated minifigure ({figure}) part ({part}) missing count to {missing}'.format( # noqa: E501 + set=brickset.fields.set, id=brickset.fields.id, figure=brickminifigure.fields.figure, part=brickpart.fields.id, @@ -149,8 +149,8 @@ def missing_part(*, id: str, part: str) -> Response: brickpart.update_missing(missing) # Info - logger.info('Set {number} ({id}): updated part ({part}) missing count to {missing}'.format( # noqa: E501 - number=brickset.fields.set, + logger.info('Set {set} ({id}): updated part ({part}) missing count to {missing}'.format( # noqa: E501 + set=brickset.fields.set, id=brickset.fields.id, part=brickpart.fields.id, missing=missing,