mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
Use config[] not config.get() (#8454)
* Typo fix in CONTRIBUTING.md
* Alter references to config.get('FOO') to use preferred config['FOO']
* Set missing configuration constants in superset/config.py
* Misc. CI fixes
* Add type annotation for FEATURE_FLATGS
This commit is contained in:
committed by
Maxime Beauchemin
parent
3cba1bd990
commit
e4ca44e95f
@@ -52,7 +52,7 @@ class PrestoDBSQLValidator(BaseSQLValidator):
|
||||
|
||||
# Hook to allow environment-specific mutation (usually comments) to the SQL
|
||||
# pylint: disable=invalid-name
|
||||
SQL_QUERY_MUTATOR = config.get("SQL_QUERY_MUTATOR")
|
||||
SQL_QUERY_MUTATOR = config["SQL_QUERY_MUTATOR"]
|
||||
if SQL_QUERY_MUTATOR:
|
||||
sql = SQL_QUERY_MUTATOR(sql, user_name, security_manager, database)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user