diff --git a/api/s9_demands.py b/api/s9_demands.py index edb476c..38d84c8 100644 --- a/api/s9_demands.py +++ b/api/s9_demands.py @@ -169,6 +169,6 @@ def unset_demand_by_pattern(name: str, pattern: str) -> ChangeSet: ds = get_demand(name, row['id']) for d in ds['demands']: d['pattern'] = None - cs.append(g_update_prefix | {'type': 'demand', 'junction': row['junction'], 'demands': ds}) + cs.append(g_update_prefix | {'type': 'demand', 'junction': row['id'], 'demands': ds['demands']}) return cs