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