From f4c82ada2eebfaed278e6c6da6bd57f2cfcb3d90 Mon Sep 17 00:00:00 2001 From: Alex Mikhalev Date: Wed, 30 Sep 2020 14:42:58 -0600 Subject: [PATCH] Remove ad-hoc program modification Now we can run from MQTT to test --- src/main.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/main.rs b/src/main.rs index 03c2be4..32d2017 100644 --- a/src/main.rs +++ b/src/main.rs @@ -44,15 +44,7 @@ async fn main() -> Result<()> { let mut section_runner = section_runner::SectionRunner::new(section_interface); let mut program_runner = program_runner::ProgramRunner::new(section_runner.clone()); - let mut programs = database::query_programs(&conn)?; - - // TEMP: just so the program runs right away - if let Some(prog) = programs.get_mut(&1) { - let prog_mut = Arc::make_mut(prog); - if let Some(first_time) = prog_mut.schedule.times.get_mut(0) { - *first_time = chrono::Local::now().time() + chrono::Duration::seconds(5); - } - } + let programs = database::query_programs(&conn)?; for prog in programs.values() { debug!(program = debug(&prog), "read program");