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 a8f883b

Browse files
Submit to a specific problem list
1 parent f422206 commit a8f883b

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

‎Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎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.4.6"
7+
version = "0.4.7"
88
authors = ["clearloop <tianyi.gc@gmail.com>"]
99
edition = "2021"
1010
description = "Leetcode command-line interface in rust."

‎src/cache/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ impl Cache {
308308
json.insert("lang", conf.code.lang.to_string());
309309
json.insert("question_id", p.id.to_string());
310310
json.insert("typed_code", code);
311+
json.insert("favorite_slug", conf.code.favorite_slug.to_string());
311312

312313
// pass manually data
313314
json.insert("name", p.name.to_string());

‎src/config/code.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ pub struct Code {
3535
#[serde(default, skip_serializing)]
3636
pub test: bool,
3737
pub lang: String,
38+
pub favorite_slug: String,
3839
#[serde(default = "default_pick", skip_serializing)]
3940
pub pick: String,
4041
#[serde(default = "default_submission", skip_serializing)]
@@ -56,6 +57,7 @@ impl Default for Code {
5657
comment_leading: "".into(),
5758
test: true,
5859
lang: "rust".into(),
60+
favorite_slug: "nxzfx626".into(),
5961
pick: "${fid}.${slug}".into(),
6062
submission: "${fid}.${slug}.${sid}.${ac}".into(),
6163
}

0 commit comments

Comments
(0)

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