From da45378ffdace5aacc63b2f85ebbab4c3fe265c1 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 2 Jul 2023 16:27:26 -0700 Subject: groan --- src/dbctx.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/dbctx.rs b/src/dbctx.rs index 05910f1..314f09f 100644 --- a/src/dbctx.rs +++ b/src/dbctx.rs @@ -562,11 +562,9 @@ impl DbCtx { .unwrap() .query_row( "select id from hosts where \ - ( \ hostname=?1 and cpu_vendor_id=?2 and cpu_model_name=?3 and cpu_family=?4 and \ cpu_model=?5 and cpu_cores=?6 and mem_total=?7 and \ - arch=?10 \ - );", + arch=?10);", ( &host_info.hostname, &host_info.cpu_info.vendor_id, @@ -620,8 +618,7 @@ impl DbCtx { "select id from hosts where \ hostname=?1 and cpu_vendor_id=?2 and cpu_model_name=?3 and cpu_family=?4 and \ cpu_model=?5 and cpu_microcode=?6 and cpu_cores=?7 and mem_total=?8 and \ - arch=?9 and family=?10 and os=?11 \ - );", + arch=?9 and family=?10 and os=?11;", ( &host_info.hostname, &host_info.cpu_info.vendor_id, -- cgit v1.1