Skip to content

Commit

Permalink
change to use the end_time value for the where clause (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
tee8z authored Mar 21, 2024
1 parent 0ee1136 commit 0653b10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parquet_file_service/src/routes/stations/forecasts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ fn run_forecasts_query(

if let Some(end) = &req.end {
daily_forecasts = daily_forecasts.where_(format!(
"(DATE_TRUNC('day', begin_time::TIMESTAMP) + INTERVAL '1 day')::TIMESTAMPTZ <= {}::TIMESTAMPTZ",
"(DATE_TRUNC('day', end_time::TIMESTAMP)::TIMESTAMPTZ <= {}::TIMESTAMPTZ",
placeholders.next()
));
values.push(end.to_owned());
Expand Down

0 comments on commit 0653b10

Please sign in to comment.