Skip to content

Commit

Permalink
Fixed the division by 0 possible error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslanbaidan committed Mar 26, 2024
1 parent 1a070dc commit fc8fb60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stats/stats_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,6 @@ def get_finished_surveys_list(start_date, end_date):
"end_date": str(end_date),
"total_average_score": round(
total_overall_score / surveys_users_results["surveys_total_number"]
),
) if surveys_users_results["surveys_total_number"] != 0 else 0,
"surveys_users_results": surveys_users_results,
}

0 comments on commit fc8fb60

Please sign in to comment.