Merge branch 'feature/add-metadata-to-files'

This commit is contained in:
Manuel Schmid
2024-02-18 16:27:29 +01:00
3 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -97,7 +97,8 @@ def get_steps(key: str, fallback: str | None, source_dict: dict, results: list,
h = source_dict.get(key, source_dict.get(fallback, default))
assert h is not None
h = int(h)
if h not in set(item.value for item in Steps):
# if not in steps or in steps and performance is not the same
if h not in iter(Steps) or Steps(h).name.casefold() != source_dict.get('performance', '').replace(' ', '_').casefold():
results.append(h)
return
results.append(-1)