Add todos

This commit is contained in:
Joscha 2021-12-13 23:41:37 +01:00
parent 38e7d02f61
commit 8d004ab16c
2 changed files with 3 additions and 0 deletions

View file

@ -22,6 +22,8 @@ pub struct Opt {
/// Overwrite the current date
#[structopt(short, long)]
date: Option<NaiveDate>,
// TODO Allow negative numbers for `before` and `after`
// TODO Or just allow any Delta
/// How many days to include before the current date
#[structopt(short, long, default_value = "3")]
before: u32,

View file

@ -329,6 +329,7 @@ impl FormulaSpec {
if let Some(last_done) = s.last_done() {
range = range.with_from(last_done.succ())?;
}
// TODO Otherwise, go back one year or so if no FROM is specified
}
s.limit_from_until(range)