Skip to content

Commit

Permalink
deep-copy entity values before inserting them into the project tree (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jarosenb authored Sep 4, 2024
1 parent 2e94d3a commit adbb542
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import subprocess
import os
import shutil
import copy
import datetime
from pathlib import Path
import logging
Expand Down Expand Up @@ -204,7 +205,9 @@ def add_values_to_tree(project_id: str) -> nx.DiGraph:
for node_id in publication_tree:
uuid = publication_tree.nodes[node_id]["uuid"]
if uuid is not None:
publication_tree.nodes[node_id]["value"] = entity_map[uuid].value
publication_tree.nodes[node_id]["value"] = copy.deepcopy(
entity_map[uuid].value
)

return publication_tree

Expand Down

0 comments on commit adbb542

Please sign in to comment.