Remove confusing reference to number for sets

This commit is contained in:
Gregoo 2025-01-27 18:40:51 +01:00
parent 1519f33e98
commit cbf2b5b582

View File

@ -47,8 +47,8 @@ def update_status(*, id: str, checkbox_id: str) -> Response:
brickset.update_status(checkbox, value) brickset.update_status(checkbox, value)
# Info # Info
logger.info('Set {number} ({id}): status "{status}" changed to "{state}"'.format( # noqa: E501 logger.info('Set {set} ({id}): status "{status}" changed to "{state}"'.format( # noqa: E501
number=brickset.fields.set, set=brickset.fields.set,
id=brickset.fields.id, id=brickset.fields.id,
status=checkbox.fields.name, status=checkbox.fields.name,
state=value, state=value,
@ -77,8 +77,8 @@ def do_delete(*, id: str) -> Response:
brickset.delete() brickset.delete()
# Info # Info
logger.info('Set {number} ({id}): deleted'.format( logger.info('Set {set} ({id}): deleted'.format(
number=brickset.fields.set, set=brickset.fields.set,
id=brickset.fields.id, id=brickset.fields.id,
)) ))
@ -125,8 +125,8 @@ def missing_minifigure_part(*, id: str, figure: str, part: str) -> Response:
brickpart.update_missing(missing) brickpart.update_missing(missing)
# Info # Info
logger.info('Set {number} ({id}): updated minifigure ({figure}) part ({part}) missing count to {missing}'.format( # noqa: E501 logger.info('Set {set} ({id}): updated minifigure ({figure}) part ({part}) missing count to {missing}'.format( # noqa: E501
number=brickset.fields.set, set=brickset.fields.set,
id=brickset.fields.id, id=brickset.fields.id,
figure=brickminifigure.fields.figure, figure=brickminifigure.fields.figure,
part=brickpart.fields.id, part=brickpart.fields.id,
@ -149,8 +149,8 @@ def missing_part(*, id: str, part: str) -> Response:
brickpart.update_missing(missing) brickpart.update_missing(missing)
# Info # Info
logger.info('Set {number} ({id}): updated part ({part}) missing count to {missing}'.format( # noqa: E501 logger.info('Set {set} ({id}): updated part ({part}) missing count to {missing}'.format( # noqa: E501
number=brickset.fields.set, set=brickset.fields.set,
id=brickset.fields.id, id=brickset.fields.id,
part=brickpart.fields.id, part=brickpart.fields.id,
missing=missing, missing=missing,