Skip to content

Commit

Permalink
fix: Use deepcopy since it's a list
Browse files Browse the repository at this point in the history
  • Loading branch information
bmtcril committed Apr 17, 2024
1 parent 1253976 commit d8d840b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platform_plugin_aspects/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from __future__ import annotations

import copy
import json
import logging
import os
Expand Down Expand Up @@ -51,7 +52,7 @@ def generate_superset_context(
superset_config = settings.SUPERSET_CONFIG

# We're modifying this, keep a local copy
rtn_dashboards = dashboards.copy()
rtn_dashboards = copy.deepcopy(dashboards)

if language:
for dashboard in rtn_dashboards:
Expand Down

0 comments on commit d8d840b

Please sign in to comment.