-fn update_hot_ranks(conn: &mut PgConnection, last_week_only: bool) {
- let process_start_time = if last_week_only {
- info!("Updating hot ranks for last week...");
- naive_now() - chrono::Duration::days(7)
- } else {
- info!("Updating hot ranks for all history...");
- NaiveDateTime::from_timestamp_opt(0, 0).expect("0 timestamp creation")
- };