From 1da53e1c4bc44da63099fbfab4e1b769dd0fa6e4 Mon Sep 17 00:00:00 2001 From: Ole Tytlandsvik Date: Wed, 23 Aug 2023 16:19:08 +0200 Subject: [PATCH] :bug: Fix admin member update accepting 0 as penalty --- app/api/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/admin.py b/app/api/admin.py index e820c4a..eee5fe7 100644 --- a/app/api/admin.py +++ b/app/api/admin.py @@ -68,7 +68,7 @@ def update_member(request: Request, id: str, memberData: AdminMemberUpdate, toke values = memberData.dict() updateInfo = {} for key in values: - if values[key]: + if values[key] or values[key] == 0: updateInfo[key] = values[key] if not updateInfo: