Skip to content
Snippets Groups Projects
Commit 270fd3a2 authored by David Schäfer's avatar David Schäfer
Browse files

Allow functions to overwrite existing targets

parent f26d3ae3
No related branches found
No related tags found
4 merge requests!685Release 2.4,!684Release 2.4,!567Release 2.2.1,!566Release 2.2
......@@ -367,7 +367,7 @@ def register(
# initialize all target variables
for src, trg in zip(fields, targets):
if src != trg:
out = out.copyField(field=src, target=trg)
out = out.copyField(field=src, target=trg, overwrite=True)
for src, trg in zip(fields, targets):
kwargs = {**kwargs, "field": src, "target": trg}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment