Skip to content

[Bug] `/tu/{id}` Participation math is incorrect

  • I have described the bug in complete detail in the Description section.
  • I have specified steps in the Reproduction section.
  • I have included the versions which are affected in the Version(s) section.

Description

Participation % math is incorrect; with two votes, Python produces 50% while PHP produces 200%; seems to be going the wrong way? That is, 100 * 2 == 200 (correct) and 100 / 2 == 50 (incorrect).

This needs to be addressed asap.

Reproduction

Vote as two separate users on the same proposal, then look at Participation on /tu/{id}.

Version(s)

09884159

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information