Skip to content

#685: deduct per comment above the threshold - #708

Open
morphqdd wants to merge 1 commit into
zerocracy:masterfrom
morphqdd:685
Open

#685: deduct per comment above the threshold#708
morphqdd wants to merge 1 commit into
zerocracy:masterfrom
morphqdd:685

Conversation

@morphqdd

@morphqdd morphqdd commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

The bylaw text promises 0.2 points off for every comment above the threshold, the
formula charged 0.2 for every comment, including the ones below it. With 24
comments the text said 3.2 and the code computed 4.8.

The formula counts only the comments above the threshold now, and the text says
that nothing is deducted until the floor is reached, which was also unstated.

One expected number in test_check_all_bills moves with it.

Closes #685

yegor256 commented Sep 3, 2026

Copy link
Copy Markdown
Member

Thanks — matches the reported arithmetic mismatch and updates the bill test accordingly. CI is green.

@rultor merge


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

code-contribution-was-rewarded deducts per total comment while its text says above the threshold

2 participants