Skip to content

Commit 11c5fc4

Browse files
author
robot
committed
go
1 parent 8fda549 commit 11c5fc4

File tree

2 files changed

+23272
-5
lines changed

2 files changed

+23272
-5
lines changed

schedule/check-in.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,18 +101,18 @@ function run(n) {
101101
}
102102
return Object.keys(A);
103103
}
104-
const graplist = checkWithinNDays(n);
104+
const graplist = Object.keys(checkWithinNDays(n));
105105
const blacklist = diff(allUsers, graplist).filter(
106106
(name) => !/[A-Z]/.test(name),
107107
);
108108
const redlist = fullCheckIn();
109109
console.log(`no check within ${n} days`, JSON.stringify(blacklist));
110110
console.log(`full check`, redlist);
111111

112-
for (const gray of graplist) {
112+
for (const login of graplist) {
113113
// 更新 users 信息。 如果七天没有打过卡,则直接不会更新到 users
114-
if (!us[gray.login]) {
115-
us[gray.login] = {};
114+
if (!us[login]) {
115+
us[login] = {};
116116
}
117117
}
118118

static/my/solutions.json

Lines changed: 23268 additions & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)