Remove the unneeded full tracking of history
Also use setdefault() to save a bunch of pain Prevent a silly exhaustive history search on all channel times rather than just current users
This commit is contained in:
parent
503e899f19
commit
f00216fffc
3 changed files with 40 additions and 68 deletions
|
@ -105,7 +105,7 @@ class _Config():
|
|||
|
||||
@property
|
||||
def score_factors(self) -> _ScoreFactors:
|
||||
return _ScoreFactors(self._dict.get(_Key.SCORE_FACTORS, {}))
|
||||
return _ScoreFactors(self._dict.setdefault(_Key.SCORE_FACTORS, {}))
|
||||
|
||||
|
||||
def _migrate(dict: dict):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue