Add pattern api and test
This commit is contained in:
@@ -29,6 +29,7 @@ def set_demand(name: str, cs: ChangeSet) -> ChangeSet:
|
||||
|
||||
f_junction = f"'{junction}'"
|
||||
|
||||
# TODO: transaction ?
|
||||
redo_sql = f"delete from demands where junction = {f_junction};"
|
||||
for r in cs.operations[0]['demands']:
|
||||
demand = float(r['demand'])
|
||||
|
||||
Reference in New Issue
Block a user