Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6dd223c

Browse files
update submit result: code-11
1 parent d87b4b5 commit 6dd223c

File tree

5 files changed

+28
-4
lines changed

5 files changed

+28
-4
lines changed

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ path = "src/bin/lc.rs"
44

55
[package]
66
name = "leetcode-cli"
7-
version = "0.2.7"
7+
version = "0.2.8"
88
authors = ["clearloop <udtrokia@163.com>"]
99
edition = "2018"
1010
description = "Leet your code in command-line."

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ cargo install leetcode-cli
2323
**Please make sure you have logined in `leetcode.com` with `chrome`**, more info plz checkout [this](#cookies)
2424

2525
```sh
26-
leetcode 0.2.7
26+
leetcode 0.2.8
2727
clearloop <udtrokia@163.com>
2828
Here's to the crazy ones 👻
2929

‎src/cache/models.rs‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use super::schemas::{problems, tags};
33
use crate::helper::HTML;
44
use colored::Colorize;
55
use serde::{Deserialize, Serialize};
6+
use serde_json::Number;
67

78
/// Tag model
89
#[derive(Clone, Insertable, Queryable, Serialize, Debug)]
@@ -322,6 +323,29 @@ impl std::fmt::Display for VerifyResult {
322323
)
323324
}
324325
}
326+
// Failed some tests
327+
11 => write!(
328+
f,
329+
"\n{}:\n\n{}{}\n{}{}\n",
330+
&self.status.status_msg.red().bold(),
331+
"Total Correct: ".green(),
332+
&self
333+
.analyse
334+
.total_correct
335+
.as_ref()
336+
.unwrap_or(&Number::from(0))
337+
.to_string()
338+
.green(),
339+
"Total Testcases: ".bold().yellow(),
340+
&self
341+
.analyse
342+
.total_testcases
343+
.as_ref()
344+
.unwrap_or(&Number::from(0))
345+
.to_string()
346+
.bold()
347+
.yellow(),
348+
),
325349
// Output Timeout Exceeded
326350
13 => write!(
327351
f,

‎src/cli.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use clap::{App, AppSettings};
1313
pub fn main() -> Result<(), Error> {
1414
let m = App::new("leetcode")
1515
.author("clearloop <udtrokia@163.com>")
16-
.version("0.2.7")
16+
.version("0.2.8")
1717
.about("Here's to the crazy ones 👻")
1818
.subcommands(vec![
1919
DataCommand::usage().display_order(1),

‎src/lib.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
//! **Please make sure you have logined in `leetcode.com` with `chrome`**, more info plz checkout [this](#cookies)
2424
//!
2525
//! ```sh
26-
//! leetcode 0.2.7
26+
//! leetcode 0.2.8
2727
//! clearloop <udtrokia@163.com>
2828
//! Here's to the crazy ones 👻
2929
//!

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /