From d467070ba73e4f667c09ff26aa2c5d69700e9e04 Mon Sep 17 00:00:00 2001 From: Kevin Trocolli Date: Sun, 19 Nov 2023 01:18:09 -0500 Subject: [PATCH] wacca: fix handle_user_status_create_request for lily --- titles/wacca/lily.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/titles/wacca/lily.py b/titles/wacca/lily.py index 96aa91a..937f66c 100644 --- a/titles/wacca/lily.py +++ b/titles/wacca/lily.py @@ -43,13 +43,18 @@ class WaccaLily(WaccaS): def handle_user_status_create_request(self, data: Dict) -> Dict: req = UserStatusCreateRequest(data) - resp = super().handle_user_status_create_request(data) + super().handle_user_status_create_request(data) + + new_user = self.data.profile.get_profile(aime_id=req.aimeId) + + if new_user is None: + return BaseResponse().make() self.data.item.put_item( req.aimeId, WaccaConstants.ITEM_TYPES["navigator"], 210002 ) # Lily, Added Lily - return resp + return UserStatusCreateResponseV1(new_user['id'], new_user['username']).make() def handle_user_status_get_request(self, data: Dict) -> Dict: req = UserStatusGetRequest(data)