From 9baf08d6b66573a0a3f467b383b37081f56561e2 Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Mon, 22 Nov 2021 21:23:35 +0100 Subject: [PATCH] set hours to None if unavailable --- ki/handlers/update_profile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ki/handlers/update_profile.py b/ki/handlers/update_profile.py index 8fd0d9e..884543d 100644 --- a/ki/handlers/update_profile.py +++ b/ki/handlers/update_profile.py @@ -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