New Year revamp #40

Merged
FrederikBaerentsen merged 31 commits from gregoo/BrickTracker:master into master 2025-01-19 08:19:01 +01:00
Showing only changes of commit e2617daa40 - Show all commits

View File

@ -193,7 +193,7 @@ class BrickPart(BrickRecord):
if current_app.config['BRICKLINK_LINKS'].value:
try:
return current_app.config['BRICKLINK_LINK_PART_PATTERN'].value.format( # noqa: E501
number=self.fields.part_num.lower(),
number=self.fields.part_num,
)
except Exception:
pass
@ -253,7 +253,7 @@ class BrickPart(BrickRecord):
if current_app.config['REBRICKABLE_LINKS'].value:
try:
return current_app.config['REBRICKABLE_LINK_PART_PATTERN'].value.format( # noqa: E501
number=self.fields.part_num.lower(),
number=self.fields.part_num,
color=self.fields.color_id,
)
except Exception: