Skip to content

Commit f40fd0e

Browse files
committed
Fix functional sqlite bw2package renaming
1 parent 40f160c commit f40fd0e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

activity_browser/bwutils/strategies.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ def swap(x: tuple) -> tuple:
116116
for exc in value.get("exchanges", []):
117117
exc["input"] = swap(exc.get("input", ("", "")))
118118
exc["output"] = swap(exc.get("output", ("", "")))
119+
120+
if value.get("processor", (None, None))[0] == old:
121+
value["processor"] = (new, value["processor"][1])
122+
119123
new_data[new_key] = value
120124
return new_data
121125

0 commit comments

Comments
 (0)