def generate_items(self) -> None:
    res1 = get_accidents_stats(table_obj=InvolvedMarkerView, filters=get_injured_filters(self.request_params.location_info), group_by=('accident_year', 'injury_severity'), count='injury_severity', start_time=self.request_params.start_time, end_time=self.request_params.end_time)
    res2 = sort_and_fill_gaps_for_stacked_bar(res1, range(self.request_params.start_time.year, (self.request_params.end_time.year + 1)), {InjurySeverity.KILLED.value: 0, InjurySeverity.SEVERE_INJURED.value: 0, InjurySeverity.LIGHT_INJURED.value: 0})
    self.items = format_2_level_items(res2, None, InjurySeverity)
def generate_items(self) -> None:
    res1 = get_accidents_stats(table_obj=InvolvedMarkerView, filters=get_injured_filters(self.request_params.location_info), group_by=('accident_year', 'injury_severity'), count='injury_severity', start_time=self.request_params.start_time, end_time=self.request_params.end_time)
    res2 = sort_and_fill_gaps_for_stacked_bar(res1, range(self.request_params.start_time.year, (self.request_params.end_time.year + 1)), {InjurySeverity.KILLED.value: 0, InjurySeverity.SEVERE_INJURED.value: 0, InjurySeverity.LIGHT_INJURED.value: 0})
    self.items = format_2_level_items(res2, None, InjurySeverity)