Skip to content

Commit 77b7f3c

Browse files
author
robot
committed
fix: 打卡逻辑
1 parent 6c0eb3a commit 77b7f3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

schedule/daily-check.js

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

0 commit comments

Comments
 (0)