fix: force bool value to 0 or 1 into db

This commit is contained in:
2025-09-30 14:59:30 +02:00
parent 22d58c4c5f
commit 835feb7450

View File

@@ -12,7 +12,10 @@ pub enum E {
impl std::fmt::Display for E {
fn fmt(&self, f: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> {
let string_value = match self {
Value::Bool(value) => value.to_string(),
Value::Bool(value) => match value{
true => 1.to_string(),
false => 0.to_string(),
},
Value::Real(value) => value.to_string(),
Value::SignedInt(value) => value.to_string(),
Value::UnsignedInt(value) => value.to_string(),