You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by jo...@apache.org on 2022/09/13 17:02:04 UTC

[superset] branch john-bodley--tags-use-db-session updated: Update update.py

This is an automated email from the ASF dual-hosted git repository.

johnbodley pushed a commit to branch john-bodley--tags-use-db-session
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/john-bodley--tags-use-db-session by this push:
     new a00f236b9e Update update.py
a00f236b9e is described below

commit a00f236b9e89649277776fcc89bd9a407f4dc7f6
Author: John Bodley <45...@users.noreply.github.com>
AuthorDate: Tue Sep 13 10:01:55 2022 -0700

    Update update.py
---
 superset/cli/update.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/superset/cli/update.py b/superset/cli/update.py
index e2054485c6..bdc54db3a9 100755
--- a/superset/cli/update.py
+++ b/superset/cli/update.py
@@ -30,7 +30,6 @@ from flask_appbuilder.api import BaseApi
 from flask_appbuilder.api.manager import resolver
 
 import superset.utils.database as database_utils
-from superset.extensions import db
 from superset.utils.encrypt import SecretsMigrator
 
 logger = logging.getLogger(__name__)
@@ -62,9 +61,9 @@ def sync_tags() -> None:
     # pylint: disable=import-outside-toplevel
     from superset.common.tags import add_favorites, add_owners, add_types
 
-    add_types(db.engine, metadata)
-    add_owners(db.engine, metadata)
-    add_favorites(db.engine, metadata)
+    add_types(metadata)
+    add_owners(metadata)
+    add_favorites(metadata)
 
 
 @click.command()