mirror of
https://github.com/apache/superset.git
synced 2026-06-05 07:39:19 +00:00
Update models.py
Minor style fix
This commit is contained in:
@@ -428,10 +428,8 @@ class Database(Model, AuditMixinNullable):
|
||||
if self.sqlalchemy_uri.startswith(db_type):
|
||||
return grains
|
||||
|
||||
def dttm_converter(self, dttm, tf=None):
|
||||
def dttm_converter(self, dttm, tf='%Y-%m-%d %H:%M:%S.%f'):
|
||||
"""Returns a string that the database flavor understands as a date"""
|
||||
if tf is None or tf == '':
|
||||
tf = '%Y-%m-%d %H:%M:%S.%f'
|
||||
default = "'{}'".format(dttm.strftime(tf))
|
||||
iso = dttm.isoformat()
|
||||
d = {
|
||||
|
||||
Reference in New Issue
Block a user