fix small issue of dttm PR (#688)
This commit is contained in:
parent
57bffe099f
commit
1ac2fccd2a
|
|
@ -1065,7 +1065,6 @@ def load_multiformat_time_series_data():
|
|||
'string3': ['%Y/%m/%d%H:%M:%S.%f', None],
|
||||
}
|
||||
for col in obj.table_columns:
|
||||
print(col.column_name)
|
||||
dttm_and_expr = dttm_and_expr_dict[col.column_name]
|
||||
col.python_date_format = dttm_and_expr[0]
|
||||
col.dbatabase_expr = dttm_and_expr[1]
|
||||
|
|
@ -1075,8 +1074,7 @@ def load_multiformat_time_series_data():
|
|||
tbl = obj
|
||||
|
||||
print("Creating some slices")
|
||||
i = 0
|
||||
for col in tbl.table_columns:
|
||||
for i, col in enumerate(tbl.table_columns):
|
||||
slice_data = {
|
||||
"granularity_sqla": col.column_name,
|
||||
"datasource_id": "8",
|
||||
|
|
@ -1099,5 +1097,4 @@ def load_multiformat_time_series_data():
|
|||
table=tbl,
|
||||
params=get_slice_json(slice_data),
|
||||
)
|
||||
i += 1
|
||||
merge_slice(slc)
|
||||
|
|
|
|||
Loading…
Reference in New Issue