Skip to content

Commit

Permalink
deep copy the attribute to avoid duplicated (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
LawyZheng authored May 20, 2024
1 parent b6d25df commit 5acdddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skyvern/webeye/scraper/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def build_attribute(key: str, value: Any) -> str:


def json_to_html(element: dict) -> str:
attributes: dict[str, Any] = element.get("attributes", {})
attributes: dict[str, Any] = copy.deepcopy(element.get("attributes", {}))

# adding the node attribute to attributes
for attr in ELEMENT_NODE_ATTRIBUTES:
Expand Down

0 comments on commit 5acdddf

Please sign in to comment.