Skip to content

最新的题通过后没有百分比运行信息 #195

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

Merged
merged 1 commit into from
Feb 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## version 2.17.6

- 最新的题通过后没有百分比运行信息

## version 2.17.5

- 修复 c++ 调试 断点问题
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-leetcode-problem-rating",
"displayName": "LeetCode",
"description": "%main.description%",
"version": "2.17.5",
"version": "2.17.6",
"author": "ccagml",
"publisher": "ccagml",
"license": "MIT",
Expand Down
3 changes: 1 addition & 2 deletions src/rpc/factory/api/submitApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class SubmitApi extends ApiBase {
result.runtime_percentile.toFixed(2),
result.lang
);
else return reply.warn("Failed to get runtime percentile.");

if (result.memory && result.memory_percentile)
that.printLine(
log_obj,
Expand All @@ -111,7 +111,6 @@ class SubmitApi extends ApiBase {
result.lang,
result.memory
);
else return reply.warn("Failed to get memory percentile.");
})();
} else {
result.testcase = result.testcase.slice(1, -1).replace(/\\n/g, "\n");
Expand Down