https://bugzilla.wikimedia.org/show_bug.cgi?id=42043
Web browser: ---
Bug #: 42043
Summary: LotteryOdds incorrect calculation
Product: MediaWiki extensions
Version: master
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: ArticleFeedbackv5
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
File: /modules/jquery.articleFeedbackv5/jquery.articleFeedbackv5.verify.js
Line 203
If a article is a lottery-article is incorrect calculated:
Currently for odds=100 articles with e.g. curid=1000 still not included.
Proposed fix 1: return ( Number( article.id ) % 1000 ) > ( 999 - ( Number( odds
) * 10 ) );
Proposed fix 2: return ( Number( article.id ) % 1000 ) >= ( 1000 - ( Number(
odds ) * 10 ) );
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l