Skip to content

Commit

Permalink
make date ranges inclusive of range
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaiser Dandangi committed Nov 14, 2019
1 parent e840fef commit 3540c46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metrix/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ fn query_metric_route(
if created_at_start_parsed.is_ok() {
filter_clause.insert_str(
filter_clause.len(),
&format!(" AND created_at > '{}'", created_at_start).to_string()
&format!(" AND created_at >= '{}'", created_at_start).to_string()
);
}
}
Expand All @@ -95,7 +95,7 @@ fn query_metric_route(
if created_at_end_parsed.is_ok() {
filter_clause.insert_str(
filter_clause.len(),
&format!(" AND created_at < '{}'", created_at_end).to_string()
&format!(" AND created_at <= '{}'", created_at_end).to_string()
);
}
}
Expand Down

0 comments on commit 3540c46

Please sign in to comment.