chore(sqlalchemy): Remove erroneous SQLAlchemy ORM session.merge operations (#24776)

This commit is contained in:
John Bodley
2023-11-20 17:25:41 -08:00
committed by GitHub
parent e7797b65d1
commit dd58b31cc4
49 changed files with 34 additions and 82 deletions

View File

@@ -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()