This commit is contained in:
parent
a56da9b9e0
commit
c7450f1cc5
@ -136,10 +136,6 @@ impl Schedule {
|
||||
_ => reference,
|
||||
}
|
||||
.clone();
|
||||
println!(
|
||||
"resolved to: {:?}, from: {:?}, reference: {:?}",
|
||||
to, &from, reference
|
||||
);
|
||||
let mut next_run: Option<DateTime<Tz>> = None;
|
||||
for weekday in &self.weekdays {
|
||||
for time in &self.times {
|
||||
@ -152,7 +148,6 @@ impl Schedule {
|
||||
date
|
||||
}
|
||||
});
|
||||
println!("trying date: {:?}", candidate);
|
||||
let candidate = match (candidate, &to) {
|
||||
(Some(date), Some(to)) if &date > to => None,
|
||||
(date, _) => date,
|
||||
|
Loading…
x
Reference in New Issue
Block a user