aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-07-03 10:36:22 -0500
committerFrederick Muriuki Muriithi2025-07-03 10:36:22 -0500
commit82313c725aebc610fb979a686bcda2dfd11a36cc (patch)
tree0dedad655b81a1baea63b4ed27a8944da0b3da21
parentb2826cfa28da90496ba58e3070e5d09aa6b8830f (diff)
downloadgn-auth-82313c725aebc610fb979a686bcda2dfd11a36cc.tar.gz
Bugfix: Set the correct value.
-rw-r--r--gn_auth/auth/authorisation/users/models.py2
1 files changed, 1 insertions, 1 deletions
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())