Change smoothing to 3 weeks

This commit is contained in:
Knyffen 2024-10-14 14:04:56 +02:00
parent bb13d718aa
commit 09987b8630

View File

@ -10,7 +10,7 @@ use time::Date;
use time::*;
const MEALS_PER_DAY: f32 = 2.3;
const SMOOTHING_DAYS: usize = 14;
const SMOOTHING_DAYS: usize = 21;
fn time_date_to_chrono_naive_date(d: Date) -> chrono::NaiveDate {
chrono::NaiveDate::from_ymd_opt(d.year(), d.month() as u32, d.day() as u32).unwrap()