summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2023-07-02 16:27:26 -0700
committeriximeow <me@iximeow.net>2023-07-02 16:27:26 -0700
commitda45378ffdace5aacc63b2f85ebbab4c3fe265c1 (patch)
tree33433051c6bc6b57a74b122e92550fc5def332c6
parente02825d34f1a0a905141ea0680358119f970e455 (diff)
groan
-rw-r--r--src/dbctx.rs7
1 files 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,