Skip to content

Commit

Permalink
fix: remove redundant argument
Browse files Browse the repository at this point in the history
  • Loading branch information
ofekisr committed Nov 24, 2021
1 parent 7353a2b commit e0e54f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .flaskenv
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
FLASK_APP="superset.app:create_app()"
#FLASK_APP="superset.app:create_app()"
FLASK_APP="superset.ofek:create_for_ofek()"
FLASK_ENV="development"
5 changes: 1 addition & 4 deletions superset/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
from flask_appbuilder.api import BaseApi

from superset import app, appbuilder, config, security_manager
from superset.app import create_app
from superset.extensions import celery_app, db
from superset.utils import core as utils
from superset.utils.celery import session_scope
Expand Down Expand Up @@ -73,9 +72,7 @@ def normalize_token(token_name: str) -> str:


@click.group(
cls=FlaskGroup,
create_app=create_app,
context_settings={"token_normalize_func": normalize_token},
cls=FlaskGroup, context_settings={"token_normalize_func": normalize_token},
)
@with_appcontext
def superset() -> None:
Expand Down

0 comments on commit e0e54f1

Please sign in to comment.