Skip to content

Commit c83c9e2

Browse files
Merge pull request #951 from tgnottingham/date-filter-fix
Filter results by end date correctly on graphs and bootstrap pages
2 parents 2667362 + ef8f055 commit c83c9e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/selector.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub fn range_subset(data: Vec<Commit>, range: RangeInclusive<Bound>) -> Vec<Comm
6666
let (a, b) = range.into_inner();
6767

6868
let left_idx = data.iter().position(|commit| a.left_match(commit));
69-
let right_idx = data.iter().rposition(|commit| b.left_match(commit));
69+
let right_idx = data.iter().rposition(|commit| b.right_match(commit));
7070

7171
if let (Some(left), Some(right)) = (left_idx, right_idx) {
7272
data.get(left..=right)

0 commit comments

Comments
 (0)