File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 ( {
Original file line number Diff line number Diff line change 1313 "axios" : " ^0.24.0" ,
1414 "dotenv" : " ^10.0.0"
1515 }
16- }
16+ }
You can’t perform that action at this time.
0 commit comments