diff --git a/src/bin/simulation.rs b/src/bin/simulation.rs index fbe6e9d..4e4e746 100644 --- a/src/bin/simulation.rs +++ b/src/bin/simulation.rs @@ -154,7 +154,7 @@ pub async fn main() { } for i in 1..LEVEL_INTERVAL.len() - 2 { - // Advance LA's time to tomorrow + // Advance LA's time la_net_test .request( "/advancedays".to_string(), @@ -163,7 +163,7 @@ pub async fn main() { .into(), ) .await; - // Advance simulated time to tomorrow + // Advance simulated time set_simulated_date(get_date() + LEVEL_INTERVAL[i]); for user in &mut users { @@ -178,6 +178,21 @@ pub async fn main() { .await; } } + + // Have Troll Patrol run its update process so we have a negative + // report key for tomorrow + tp_net_test.request("/update".to_string(), vec![]).await; + + // Advance LA's time to tomorrow + la_net_test + .request( + "/advancedays".to_string(), + serde_json::to_string(&(1 as u16)).unwrap().into(), + ) + .await; + + // Advance simulated time to tomorrow + increment_simulated_date(); } // Set up extra-infos server