File tree Expand file tree Collapse file tree 2 files changed +23272
-5
lines changed
Expand file tree Collapse file tree 2 files changed +23272
-5
lines changed Original file line number Diff line number Diff 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
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments