user_profile: Fallback to "" for timezone upon creation.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
Zixuan James Li
2022-06-14 23:14:23 -04:00
committed by Tim Abbott
parent a9029c68ea
commit 9bfeebf064
2 changed files with 2 additions and 2 deletions

View File

@@ -98,7 +98,7 @@ def build_user_profile(
is_mirror_dummy: bool, is_mirror_dummy: bool,
realm_id: int, realm_id: int,
short_name: str, short_name: str,
timezone: Optional[str], timezone: str,
is_bot: bool = False, is_bot: bool = False,
bot_type: Optional[int] = None, bot_type: Optional[int] = None,
) -> ZerverFieldsT: ) -> ZerverFieldsT:

View File

@@ -83,7 +83,7 @@ def create_user_profile(
bot_owner: Optional[UserProfile], bot_owner: Optional[UserProfile],
is_mirror_dummy: bool, is_mirror_dummy: bool,
tos_version: Optional[str], tos_version: Optional[str],
timezone: Optional[str], timezone: str,
default_language: str = "en", default_language: str = "en",
tutorial_status: str = UserProfile.TUTORIAL_WAITING, tutorial_status: str = UserProfile.TUTORIAL_WAITING,
force_id: Optional[int] = None, force_id: Optional[int] = None,