Don't store complex objects in Flash config that could mask existing config items, rather store the values and handle the actual list of conf differently

This commit is contained in:
2025-01-20 15:20:07 +01:00
parent 3712356caa
commit e232e2ab7f
37 changed files with 126 additions and 118 deletions

View File

@@ -76,7 +76,7 @@ class RebrickableParts(object):
for index, part in enumerate(inventory):
# Skip spare parts
if (
current_app.config['SKIP_SPARE_PARTS'].value and
current_app.config['SKIP_SPARE_PARTS'] and
part.fields.is_spare
):
continue
@@ -104,7 +104,7 @@ class RebrickableParts(object):
)
)
if not current_app.config['USE_REMOTE_IMAGES'].value:
if not current_app.config['USE_REMOTE_IMAGES']:
RebrickableImage(
self.brickset,
minifigure=self.minifigure,