Skip to content

Commit

Permalink
Fix loading obsolete tool filter into connection
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelma committed Feb 8, 2024
1 parent 218d10c commit cc5df9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spine_engine/project_item/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,9 +735,11 @@ def _restore_legacy_disabled_filters(disabled_filter_names):
Returns:
dict: known filters
"""
deprecated_types = {"tool_filter"}
converted = {}
for label, names_by_type in disabled_filter_names.items():
converted_names_by_type = converted.setdefault(label, {})
for filter_type, names in names_by_type.items():
converted_names_by_type[filter_type] = {name: False for name in names}
if filter_type not in deprecated_types:
converted_names_by_type[filter_type] = {name: False for name in names}
return converted

0 comments on commit cc5df9f

Please sign in to comment.