diff --git a/flask_shell_ipython.py b/flask_shell_ipython.py index efaffdb..73ef639 100644 --- a/flask_shell_ipython.py +++ b/flask_shell_ipython.py @@ -28,8 +28,7 @@ def shell(ipython_args): config.TerminalInteractiveShell.banner1 = f"""Python {sys.version} on {sys.platform} IPython: {IPython.__version__} -App: {app.import_name} -Debug: {app.debug} +App: {app.import_name}{' [debug]' if app.debug else ''} Instance: {app.instance_path} """