File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ pub async fn run_daily_task_at_midnight(pool: Arc<PgPool>) {
17
17
loop {
18
18
let now = chrono:: Utc :: now ( ) . with_timezone ( & Kolkata ) ;
19
19
let naive_midnight =
20
- NaiveTime :: from_hms_opt ( 00 , 30 , 00 ) . expect ( "Hardcoded time must be valid" ) ;
20
+ NaiveTime :: from_hms_opt ( 18 , 43 , 00 ) . expect ( "Hardcoded time must be valid" ) ;
21
21
let today_midnight = now
22
22
. with_time ( naive_midnight)
23
23
. single ( )
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ impl LeaderboardMutation {
72
72
unified_score = EXCLUDED.unified_score,
73
73
last_updated = NOW()" ,
74
74
row. member_id,
75
- leetcode_score ,
75
+ 0 , // Leetcode score set to zero as only Codeforces stats are being processed here
76
76
codeforces_score,
77
77
unified_score
78
78
)
@@ -110,6 +110,7 @@ impl LeaderboardMutation {
110
110
unified_score = EXCLUDED.unified_score,
111
111
last_updated = NOW()" ,
112
112
row. member_id,
113
+ 0 ,
113
114
codeforces_score,
114
115
unified_score
115
116
)
@@ -126,4 +127,4 @@ impl LeaderboardMutation {
126
127
127
128
Ok ( true )
128
129
}
129
- }
130
+ }
You can’t perform that action at this time.
0 commit comments