mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
Do not shadow _ function. (#1254)
This commit is contained in:
parent
8ab5e5015a
commit
58dfa436ee
@ -3,7 +3,6 @@ from __future__ import absolute_import
|
|||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import re
|
|
||||||
|
|
||||||
import functools
|
import functools
|
||||||
import json
|
import json
|
||||||
@ -826,7 +825,7 @@ class SqlaTable(Model, Queryable, AuditMixinNullable):
|
|||||||
# Patch only if the column clause is specific for DateTime set and
|
# Patch only if the column clause is specific for DateTime set and
|
||||||
# granularity is selected.
|
# granularity is selected.
|
||||||
@compiles(ColumnClause)
|
@compiles(ColumnClause)
|
||||||
def _(element, compiler, **kw):
|
def visit_column(element, compiler, **kw):
|
||||||
text = compiler.visit_column(element, **kw)
|
text = compiler.visit_column(element, **kw)
|
||||||
try:
|
try:
|
||||||
if element.is_literal and hasattr(element.type, 'python_type') and \
|
if element.is_literal and hasattr(element.type, 'python_type') and \
|
||||||
|
Loading…
Reference in New Issue
Block a user