mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore(sqlalchemy): Remove erroneous SQLAlchemy ORM session.merge operations (#24776)
This commit is contained in:
@@ -34,6 +34,7 @@ def load_misc_dashboard() -> None:
|
||||
|
||||
if not dash:
|
||||
dash = Dashboard()
|
||||
db.session.add(dash)
|
||||
js = textwrap.dedent(
|
||||
"""\
|
||||
{
|
||||
@@ -215,5 +216,4 @@ def load_misc_dashboard() -> None:
|
||||
dash.position_json = json.dumps(pos, indent=4)
|
||||
dash.slug = DASH_SLUG
|
||||
dash.slices = slices
|
||||
db.session.merge(dash)
|
||||
db.session.commit()
|
||||
|
||||
Reference in New Issue
Block a user