diff --git a/crates/experimentation_platform/src/db/models.rs b/crates/experimentation_platform/src/db/models.rs index 1fe6c597..830f9042 100644 --- a/crates/experimentation_platform/src/db/models.rs +++ b/crates/experimentation_platform/src/db/models.rs @@ -1,12 +1,21 @@ use crate::db::schema::*; use chrono::{DateTime, NaiveDateTime, Utc}; -use diesel::{query_builder::QueryId, Insertable, Queryable, QueryableByName, Selectable}; +use diesel::{ + query_builder::QueryId, Insertable, Queryable, QueryableByName, Selectable, +}; use serde::{Deserialize, Serialize}; use serde_json::Value; #[derive( - Debug, Clone, Copy, PartialEq, Deserialize, Serialize, diesel_derive_enum::DbEnum, QueryId, + Debug, + Clone, + Copy, + PartialEq, + Deserialize, + Serialize, + diesel_derive_enum::DbEnum, + QueryId, )] #[DbValueStyle = "UPPERCASE"] #[ExistingTypePath = "crate::db::schema::sql_types::ExperimentStatusType"] diff --git a/crates/frontend/src/pages/Home/Home.rs b/crates/frontend/src/pages/Home/Home.rs index a7275339..cac9f5e2 100644 --- a/crates/frontend/src/pages/Home/Home.rs +++ b/crates/frontend/src/pages/Home/Home.rs @@ -131,7 +131,7 @@ pub fn home() -> impl IntoView { "==" => "=", _ => break, // query params do not support the other operators : != and IN, do something differently later }; - context.push(format!("{}{op}{}", dimension, value.to_lowercase())); + context.push(format!("{}{op}{}", dimension, value)); } context.join("&").to_string() };