This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new 13aa889 gotta catch 'em all (#9676)
13aa889 is described below
commit 13aa889796799eea07e26b16fab0f0fb5406beb6
Author: Evan Rusackas <[email protected]>
AuthorDate: Tue Apr 28 14:10:04 2020 -0700
gotta catch 'em all (#9676)
---
superset/views/base.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/superset/views/base.py b/superset/views/base.py
index 1260dd2..b1eacec 100644
--- a/superset/views/base.py
+++ b/superset/views/base.py
@@ -217,7 +217,7 @@ def menu_data():
if not g.user.is_anonymous:
try:
logo_target_path = (
- appbuilder.app.config.get("LOGO_TARGET_PATH")
+ appbuilder.app.config["LOGO_TARGET_PATH"]
or f"/profile/{g.user.username}/"
)
# when user object has no username
@@ -244,10 +244,10 @@ def menu_data():
"width": appbuilder.app.config["APP_ICON_WIDTH"],
},
"navbar_right": {
- "bug_report_url": appbuilder.app.config.get("BUG_REPORT_URL"),
- "documentation_url":
appbuilder.app.config.get("DOCUMENTATION_URL"),
- "version_string": appbuilder.app.config.get("VERSION_STRING"),
- "version_sha": appbuilder.app.config.get("VERSION_SHA"),
+ "bug_report_url": appbuilder.app.config["BUG_REPORT_URL"],
+ "documentation_url": appbuilder.app.config["DOCUMENTATION_URL"],
+ "version_string": appbuilder.app.config["VERSION_STRING"],
+ "version_sha": appbuilder.app.config["VERSION_SHA"],
"languages": languages,
"show_language_picker": len(languages.keys()) > 1,
"user_is_anonymous": g.user.is_anonymous,