From 82313c725aebc610fb979a686bcda2dfd11a36cc Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 3 Jul 2025 10:36:22 -0500 Subject: Bugfix: Set the correct value. --- gn_auth/auth/authorisation/users/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn_auth/auth/authorisation/users/models.py') diff --git a/gn_auth/auth/authorisation/users/models.py b/gn_auth/auth/authorisation/users/models.py index ef3ce7f..cc9a4f9 100644 --- a/gn_auth/auth/authorisation/users/models.py +++ b/gn_auth/auth/authorisation/users/models.py @@ -54,7 +54,7 @@ def __list_user_clauses_and_params__(**kwargs) -> tuple[list[str], dict[str, Uni if bool(kwargs.get("verified", "").strip()): clauses = clauses + ["verified=:verified"] - params["verified"] = 1 if kwargs["verified"].strip() == "yes" else "no" + params["verified"] = 1 if kwargs["verified"].strip() == "yes" else 0 if bool(kwargs.get("age", "").strip()): _clause, _param = __process_age_clause__(kwargs["age"].strip()) -- cgit v1.2.3