Skip to content

Commit c32eff3

Browse files
author
robot
committed
fix: daily check
1 parent c317aa3 commit c32eff3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

schedule/daily-check.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ async function run(d) {
3737
mySolutions[login] = Array(91);
3838
}
3939
// 由于下面的一行代码,导致了会插入一个完全空的行。这就是因为打过卡,但是都不是当天打的
40-
if (getDay(new Date(comment.created_at).getTime()) > d) return;
40+
if (
41+
getDay(new Date(comment.created_at).getTime()) > d ||
42+
comment.body.length < 20
43+
)
44+
return;
4145
mySolutions[login][d - 1] = {
4246
// title: problem.title,
4347
url: comment.html_url,

0 commit comments

Comments
 (0)