You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i use submit command, it doesn't reveive time beat ratio any more. instead i receive a message saying "[WARN] Failed to get submission beat ratio."
leetcode has changed the chart field name. In plugins/leetcode.js on line 339, need to update re = body.match(/distribution_formatted:\s('[^']+')/);
to re = body.match(/runtimeDistributionFormatted:\s('[^']+')/);
Another suggestion is to include the distribution bucket of the submission itself while counting the beating percentile to make it more align with what we see from the web page, which is in commands/submit.js on line 79, change if (parseFloat(score[0]) > myRuntime)
to if (parseFloat(score[0]) >= myRuntime)
Activity
smrook commentedon Feb 2, 2019
leetcode has changed the chart field name. In
plugins/leetcode.js
on line 339, need to updatere = body.match(/distribution_formatted:\s('[^']+')/);
to
re = body.match(/runtimeDistributionFormatted:\s('[^']+')/);
Another suggestion is to include the distribution bucket of the submission itself while counting the beating percentile to make it more align with what we see from the web page, which is in
commands/submit.js
on line 79, changeif (parseFloat(score[0]) > myRuntime)
to
if (parseFloat(score[0]) >= myRuntime)
Thanks~
skygragon commentedon Feb 3, 2019
@smrook sounds great! would you mind sharing your fixes in the next release?
Fixing issue skygragon#156
Refactor runtime and memory percentile logic for fixing issue skygrag…
Refactor runtime and memory percentile logic for fixing issue skygrag…
ketankr9 commentedon Mar 2, 2019
I am still facing this issue.
Could someone please release a new All In One binary.
Thanks
Make changes to fix submission beat rate error
cosmozhang commentedon Jun 8, 2019
Same bug here.
edte commentedon Jul 11, 2022
same bug here