Fixed upvote weight-capping. Closes #114. This was a weird spurious error when somebody upvoting an alert could delete it. The problem was that we didn't calculate the current weight correctly in one of the cases, and it resulted in the new weight being set as NaN. I don't know if this was the sole culprit for this issue, but it was certainly causing upvotes to expire reports.
Fixed upvote weight-capping. Closes #114.
This was a weird spurious error when somebody upvoting an alert could
delete it. The problem was that we didn't calculate the current weight
correctly in one of the cases, and it resulted in the new weight being
set as NaN. I don't know if this was the sole culprit for this issue,
but it was certainly causing upvotes to expire reports.

michalbe/warszawski.ninja,patrickgreenwell/mbta-ninja,michalbe/warszawski.ninja,patmaiden/septa-ninja,ziolek666/warszawski.ninja,patmaiden/septa-ninja,codeforboston/mbta-ninja,codeforboston/mbta-ninja,patrickgreenwell/mbta-ninja,ziolek666/warszawski.ninja