Add todos
This commit is contained in:
parent
38e7d02f61
commit
8d004ab16c
2 changed files with 3 additions and 0 deletions
|
|
@ -22,6 +22,8 @@ pub struct Opt {
|
||||||
/// Overwrite the current date
|
/// Overwrite the current date
|
||||||
#[structopt(short, long)]
|
#[structopt(short, long)]
|
||||||
date: Option<NaiveDate>,
|
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
|
/// How many days to include before the current date
|
||||||
#[structopt(short, long, default_value = "3")]
|
#[structopt(short, long, default_value = "3")]
|
||||||
before: u32,
|
before: u32,
|
||||||
|
|
|
||||||
|
|
@ -329,6 +329,7 @@ impl FormulaSpec {
|
||||||
if let Some(last_done) = s.last_done() {
|
if let Some(last_done) = s.last_done() {
|
||||||
range = range.with_from(last_done.succ())?;
|
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)
|
s.limit_from_until(range)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue