Skip to content

submit not receive time beat ratio any more #156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
zcmartian opened this issue Feb 2, 2019 · 5 comments
Open

submit not receive time beat ratio any more #156

zcmartian opened this issue Feb 2, 2019 · 5 comments
Labels

Comments

@zcmartian
Copy link

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."

@smrook
Copy link

smrook commented Feb 2, 2019

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)

Thanks~

@skygragon
Copy link
Owner

@smrook sounds great! would you mind sharing your fixes in the next release?

@ketankr9
Copy link

ketankr9 commented Mar 2, 2019

I am still facing this issue.

[WARN] Failed to get submission beat ratio.

Could someone please release a new All In One binary.
Thanks

@cosmozhang
Copy link

Same bug here.

@edte
Copy link

edte commented Jul 11, 2022

same bug here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants