forked from janek/mostr
fix(main): better feedback after adjusting timetracking
This commit is contained in:
parent
be582cb536
commit
f5aca3eca8
17
src/main.rs
17
src/main.rs
|
@ -470,19 +470,16 @@ async fn main() {
|
|||
None => tasks.clear_filter()
|
||||
}
|
||||
|
||||
Some('(') =>
|
||||
match arg {
|
||||
Some(arg) =>
|
||||
if !tasks.track_from(arg) {
|
||||
continue;
|
||||
}
|
||||
None => {
|
||||
println!("{}", tasks.times_tracked());
|
||||
Some('(') => {
|
||||
if let Some(arg) = arg {
|
||||
if !tasks.track_from(arg) {
|
||||
continue;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
println!("{}", tasks.times_tracked());
|
||||
continue;
|
||||
}
|
||||
|
||||
Some(')') => {
|
||||
tasks.move_to(None);
|
||||
if let Some(arg) = arg {
|
||||
|
|
|
@ -698,7 +698,7 @@ impl Tasks {
|
|||
} else if let Ok(date) = DateTime::parse_from_rfc3339(str) {
|
||||
self.track_at(Timestamp::from(date.to_utc().timestamp() as u64));
|
||||
} else {
|
||||
warn!("Cannot parse {str}");
|
||||
warn!("Cannot parse time from {str}");
|
||||
return false;
|
||||
}
|
||||
true
|
||||
|
|
Loading…
Reference in New Issue