Skip to content

Commit 48123d6

Browse files
author
Per-Gunnar Eriksson
committed
Unborked
1 parent ea15f2d commit 48123d6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/commands/report.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub fn execute(
4343
);
4444

4545
// Convert entries to activities
46-
let mut activities = storage::entries_to_activities(&filtered_entries);
46+
let mut activities = storage::entries_to_activities(&filtered_entries, Some(range.start_date), Some(range.end_date));
4747

4848
// Filter activities to only include those that fall within our date range
4949
// This ensures we don't include activities from previous days

src/storage.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::fs::{self, File, OpenOptions};
44
use std::io::{BufRead, BufReader, Read, Seek, SeekFrom, Write};
55
use std::path::Path;
66

7-
use crate::entry::{Activity, Entry, HELLO_ENTRY_NAME, MIDNIGHT_SEPARATOR_PREFIX};
7+
use crate::entry::{Activity, Entry, MIDNIGHT_SEPARATOR_PREFIX};
88

99
pub fn read_entries(data_file: &Path) -> Result<Vec<Entry>> {
1010
if !data_file.exists() {
@@ -168,7 +168,7 @@ pub fn entries_to_activities(entries: &[Entry], start_date: Option<NaiveDate>, e
168168
activities.push(activity);
169169
}
170170

171-
activities;
171+
activities
172172
}
173173

174174
pub fn filter_entries_by_date_range(entries: &[Entry], start_date: NaiveDate, end_date: NaiveDate) -> Vec<Entry> {

0 commit comments

Comments
 (0)