Fix release error due to later loading of extruder settings #123
GitHub Actions / Black
failed
Apr 27, 2024 in 0s
2 errors
Black found 2 errors
Annotations
github-actions / Black
/home/runner/work/continuousprint/continuousprint/continuousprint/thirdparty/spoolmanager.py#L13-L26
def get_materials(self):
try:
materials = self._impl.api_getSelectedSpoolInformations()
materials = [
- f"{m['material']}_{m['colorName']}_{m['color']}"
- if m is not None
- else None
+ (
+ f"{m['material']}_{m['colorName']}_{m['color']}"
+ if m is not None
+ else None
+ )
for m in materials
]
return materials
except Exception as e:
self._logger.warning(
github-actions / Black
/home/runner/work/continuousprint/continuousprint/continuousprint/storage/queries.py#L488-L501
.join_from(EventHook, Preprocessor, JOIN.LEFT_OUTER)
):
events[e.name].append(
dict(
script=e.script.name,
- preprocessor=e.preprocessor.name
- if e.preprocessor is not None
- else None,
+ preprocessor=(
+ e.preprocessor.name if e.preprocessor is not None else None
+ ),
)
)
return dict(scripts=scripts, events=events, preprocessors=preprocessors)
Loading