set hours to None if unavailable

This commit is contained in:
weeman 2021-11-22 21:23:35 +01:00
parent 733499303f
commit 9baf08d6b6
Signed by: weeman
GPG Key ID: 34F0524D4DA694A1
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ def update_profile(user_id: int):
try:
availability_hours_per_week = int(availability_hours_per_week_raw)
except:
availability_hours_per_week = 0
availability_hours_per_week = None
profile.availability_hours_per_week = availability_hours_per_week