finish que stats method
This commit is contained in:
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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user