finish que stats method

This commit is contained in:
Pavel 2024-03-17 22:39:52 +03:00
parent 4199ac7f22
commit 1051d9c504

@ -135,7 +135,7 @@ func (r *StatisticsRepository) GetQuestionsStatistics(ctx context.Context, req D
resp.Funnel[2] = float64(row.CountTResult) / float64(row.CountStartTrue)
}
resp.Results[row.ResultsTitle] = float64(row.ResultsPercentage)
resp.Results[row.ResultsTitle] = row.ResultsPercentage
if resp.Questions[row.QuestionsTitle] == nil {
resp.Questions[row.QuestionsTitle] = make(map[string]float64)