Fix unset_demand_by_pattern cs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user