set hours to None if unavailable
This commit is contained in:
parent
733499303f
commit
9baf08d6b6
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user