Skip to content

Commit 797eb9c

Browse files
committed
update:graph:reduce width
1 parent 689d1f2 commit 797eb9c

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
![](https://img.shields.io/github/license/puiiyuen/leetcode-box)
88
![](https://img.shields.io/github/workflow/status/puiiyuen/leetcode-box/Update%20LeetCode%20gist)
99
---
10-
> 📌✨ For more pinned-gist projects like this one, check out: <https://github.com/matchai/awesome-pinned-gists>
10+
> 📌✨ For more pinned-gist projects like this one, check out:
11+
> https://github.com/matchai/awesome-pinned-gists
1112
1213
## Prep Work
1314

index.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ async function updateLeetCodeGist(leetcode) {
3232
const lines = []
3333

3434
const title = [
35-
"Difficulty".padEnd(12),
36-
"Solved".padEnd(10),
35+
"Difficulty".padEnd(10),
36+
"Solved".padEnd(9),
3737
"Accepted Rate".padEnd(8)
3838
]
3939
lines.push(title.join(" "))
@@ -44,14 +44,15 @@ async function updateLeetCodeGist(leetcode) {
4444
const solvedRadio = leetcode.solved[i].solvedRadio
4545

4646
const line = [
47-
difficulty.padEnd(12),
48-
solvedRadio.padEnd(10),
49-
generateBarChart(acceptedRate, 21),
47+
difficulty.padEnd(10),
48+
solvedRadio.padEnd(9),
49+
generateBarChart(acceptedRate, 20),
5050
String(acceptedRate.toFixed(1)).padStart(5) + "%"
5151
]
5252
lines.push(line.join(" "))
5353
}
5454

55+
5556
try {
5657
const filename = Object.keys(gist.data.files)[0]
5758
await octokit.gists.update({

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
"axios": "^0.24.0",
1414
"dotenv": "^10.0.0"
1515
}
16-
}
16+
}

0 commit comments

Comments
 (0)