DataError: division by zero
CONTEXT: SQL function "leader_board_data" statement 1
To Reproduce
Steps to reproduce the behavior:
Go to admin console
Click on Clear campaign data
Server completely broken
See error on Rollbar
Expected behavior
Should be 0 points awarded.
Screenshots
n/a
Additional context
It looks like 0 is passed as total_points to the stored function, and that is causing the error. The stored function should be updated to handle 0 points.
Describe the bug With no users, getting this rollbar error
To Reproduce Steps to reproduce the behavior:
Expected behavior Should be 0 points awarded.
Screenshots n/a
Additional context It looks like 0 is passed as
total_points
to the stored function, and that is causing the error. The stored function should be updated to handle 0 points.Blocked by Volentix/venue#138