Skip to content

Commit

Permalink
allow node obj input in add td to exc util
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoDiepers committed Sep 24, 2024
1 parent 84e84ae commit 0c19c8e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bw_timex/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,14 +385,14 @@ def get_exchange(**kwargs) -> Exchange:
# Process input_node if present
input_node = kwargs.pop("input_node", None)
if input_node:
kwargs["input_code"] = input_node.code
kwargs["input_database"] = input_node.database
kwargs["input_code"] = input_node["code"]
kwargs["input_database"] = input_node["database"]

# Process output_node if present
output_node = kwargs.pop("output_node", None)
if output_node:
kwargs["output_code"] = output_node.code
kwargs["output_database"] = output_node.database
kwargs["output_code"] = output_node["code"]
kwargs["output_database"] = output_node["database"]

# Map kwargs to database fields
mapping = {
Expand Down

0 comments on commit 0c19c8e

Please sign in to comment.