From 249b3712301b65dbfbdbceaecab42ef3e6567792 Mon Sep 17 00:00:00 2001 From: mattbk Date: Fri, 17 Oct 2025 15:48:25 -0500 Subject: [PATCH] Add spotter to database. --- src/main.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index f34c54a..a8e2a2b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -65,7 +65,8 @@ fn create_database() -> Result<()> { source TEXT, summary TEXT, final_destination TEXT, - text TEXT + text TEXT, + spotter TEXT )", [], // No parameters needed )?; @@ -90,12 +91,14 @@ fn insert_packet(p_json: serde_json::Value) -> Result<()> { source, summary, final_destination, - text) VALUES (?1, ?2, ?3, ?4, ?5)", + text, + spotter) VALUES (?1, ?2, ?3, ?4, ?5, ?6)", params![ds, &p_json["source"], &p_json["summary"], &p_json["final_destination"], - &p_json["text"]], // Bind parameters + &p_json["text"], + &p_json["spotter"]] // Bind parameters )?; //println!("Row inserted successfully.");