Skip to content

Commit ef8f055

Browse files
committed
Filter results by end date correctly on graphs and bootstrap pages
Select as the upper end of the commit range the most recent commit *less* than or equal to the specified end date, rather than the most recent commit greater than or equal to the specified end date. Fixes #833
1 parent 2667362 commit ef8f055

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)