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>) {
1717 loop {
1818 let now = chrono:: Utc :: now ( ) . with_timezone ( & Kolkata ) ;
1919 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" ) ;
2121 let today_midnight = now
2222 . with_time ( naive_midnight)
2323 . single ( )
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ impl LeaderboardMutation {
7272 unified_score = EXCLUDED.unified_score,
7373 last_updated = NOW()" ,
7474 row. member_id,
75- leetcode_score ,
75+ 0 , // Leetcode score set to zero as only Codeforces stats are being processed here
7676 codeforces_score,
7777 unified_score
7878 )
@@ -110,6 +110,7 @@ impl LeaderboardMutation {
110110 unified_score = EXCLUDED.unified_score,
111111 last_updated = NOW()" ,
112112 row. member_id,
113+ 0 ,
113114 codeforces_score,
114115 unified_score
115116 )
@@ -126,4 +127,4 @@ impl LeaderboardMutation {
126127
127128 Ok ( true )
128129 }
129- }
130+ }
You can’t perform that action at this time.
0 commit comments