Skip to content

Commit cd5f120

Browse files
author
lucifer
committed
feat: daily schedule
1 parent 83054ef commit cd5f120

File tree

5 files changed

+9
-303
lines changed

5 files changed

+9
-303
lines changed

config/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const startTime = new Date();
22

3-
startTime.setMonth(4);
4-
startTime.setDate(6);
3+
startTime.setMonth(3);
4+
startTime.setDate(30);
55
startTime.setHours(0);
66
startTime.setMinutes(0);
77
startTime.setSeconds(0);
@@ -152,6 +152,7 @@ const tobeIdentified = [
152152
"XiaoY0324",
153153
"aouos",
154154
"15399618796",
155+
"LeiLeiW825",
155156
];
156157

157158
module.exports = {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"dev": "NODE_ENV=development ./node_modules/.bin/nodemon bin/www",
88
"prd": "pm2 start bin/www",
99
"test": "echo \"Error: no test specified\" && exit 1",
10-
"daily-schedule": "node ./schedule/daily-problem.js"
10+
"daily-schedule": "node ./schedule/daily-problem.js && node ./schedule/daily-check.js"
1111
},
1212
"dependencies": {
1313
"@koa/cors": "^3.1.0",

schedule/daily-problem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const generateIssueContent = ({ title, link, pres, description, whys }) => {
2424
[${link}](${link})
2525
## 前置知识
2626
${
27-
pres.reduce((acc, cur) => {
27+
(pres || []).reduce((acc, cur) => {
2828
return `${acc}
2929
- ${cur}`;
3030
}, "") || "暂无"

static/my/solutions.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,9 @@
44
null,
55
null,
66
null,
7-
{
8-
"title": "232. 用栈实现队列",
9-
"url": "https://github.com/leetcode-pp/91alg-4/issues/1#issuecomment-833191484",
10-
"body": ""
11-
},
12-
null,
13-
{
14-
"title": "768. 最多能完成排序的块 II",
15-
"url": "https://github.com/leetcode-pp/91alg-4/issues/1#issuecomment-833191484",
16-
"body": ""
17-
},
7+
null,
8+
null,
9+
null,
1810
null,
1911
null,
2012
null,

static/solution/solutions.json

Lines changed: 1 addition & 288 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)