Skip to content

Commit

Permalink
🐛 Fix admin member update accepting 0 as penalty
Browse files Browse the repository at this point in the history
  • Loading branch information
otytlandsvik committed Aug 23, 2023
1 parent 76e0742 commit 1da53e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1da53e1

Please sign in to comment.