Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix small issue of the date time column PR #688

Merged
merged 1 commit into from
Jun 28, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions caravel/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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",
Expand All @@ -1099,5 +1097,4 @@ def load_multiformat_time_series_data():
table=tbl,
params=get_slice_json(slice_data),
)
i += 1
merge_slice(slc)