Skip to content

Commit

Permalink
Fix the perf regression
Browse files Browse the repository at this point in the history
  • Loading branch information
dyang415 committed Oct 7, 2023
1 parent 0e56a61 commit 4add38f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/insight/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def get_insight(self):

try:
logger.info('Reading file')
df = load_df_from_csv(f'/tmp/dsensei/{file_id}') \
df = load_df_from_csv(f'/tmp/dsensei/{file_id}', date_column) \
.with_columns(pl.col(date_column).cast(pl.Utf8).str.slice(0, 10).str.to_date(strict=False).alias("date"))

logger.info('File loaded')
Expand Down

0 comments on commit 4add38f

Please sign in to comment.