diff --git a/src/overview.py b/src/overview.py index d630721..d8979d3 100644 --- a/src/overview.py +++ b/src/overview.py @@ -424,7 +424,11 @@ def _total_due_in_tree(tree: DeckTreeNode): cmd = Macro.CMD_DAY_AVERAGE_HOURS pattern = _time_pattern(cmd) for match in re.findall(pattern, updated_string): - logs = _cached_log(cmd, addon_config[Config.EXCLUDED_DIDS], _range_time_ms()) + logs = _cached_log( + _cache_key(cmd, cell_data[Config.RANGE]), + addon_config[Config.EXCLUDED_DIDS], + _range_time_ms(), + ) from_date = datetime.fromtimestamp(_range_time_ms()[0] / 1000) to_date = datetime.fromtimestamp(_range_time_ms()[1] / 1000) days_in_logs = (to_date - from_date).days