Skip to content

Commit f15b30e

Browse files
committed
fix: resolved clippy workflow
1 parent 349b40a commit f15b30e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/daily_task/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()

src/graphql/mutations/update_leaderboard.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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+
}

0 commit comments

Comments
 (0)