From 5781e8699572202c22832dc167a84acb006a803a Mon Sep 17 00:00:00 2001 From: RumovZ Date: Fri, 18 Mar 2022 10:16:31 +0100 Subject: [PATCH] Don't propogate limit extensions in v3 scheduler (#1724) --- rslib/src/decks/stats.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/rslib/src/decks/stats.rs b/rslib/src/decks/stats.rs index e12de7a72..a54626577 100644 --- a/rslib/src/decks/stats.rs +++ b/rslib/src/decks/stats.rs @@ -57,11 +57,13 @@ impl Collection { }; if let Some(mut deck) = self.storage.get_deck(did)? { self.update_deck_stats_single(today, usn, &mut deck, mutator)?; - for mut deck in self.storage.parent_decks(&deck)? { - self.update_deck_stats_single(today, usn, &mut deck, mutator)?; - } - for mut deck in self.storage.child_decks(&deck)? { - self.update_deck_stats_single(today, usn, &mut deck, mutator)?; + if !self.get_config_bool(BoolKey::Sched2021) { + for mut deck in self.storage.parent_decks(&deck)? { + self.update_deck_stats_single(today, usn, &mut deck, mutator)?; + } + for mut deck in self.storage.child_decks(&deck)? { + self.update_deck_stats_single(today, usn, &mut deck, mutator)?; + } } }