pass source to db api mutator (#6497)

This commit is contained in:
timifasubaa
2019-01-10 17:30:32 -08:00
committed by GitHub
parent a2ce9974cd
commit 9d70c348d3
3 changed files with 20 additions and 4 deletions

View File

@@ -54,6 +54,12 @@ ADHOC_METRIC_EXPRESSION_TYPES = {
JS_MAX_INTEGER = 9007199254740991 # Largest int Java Script can handle 2^53-1
sources = {
'chart': 0,
'dashboard': 1,
'sql_lab': 2,
}
def flasher(msg, severity=None):
"""Flask's flash if available, logging call if not"""