From fe25359e8e562f4663ba3c8f9e32e88a89e2f833 Mon Sep 17 00:00:00 2001 From: Kevin Trocolli Date: Sat, 25 Nov 2023 01:00:49 -0500 Subject: [PATCH] chuni: add userRecentPlayerList check in upsertuserall --- titles/chuni/base.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/titles/chuni/base.py b/titles/chuni/base.py index c312f8d..7272e54 100644 --- a/titles/chuni/base.py +++ b/titles/chuni/base.py @@ -317,8 +317,7 @@ class ChuniBase: return { "userId": data["userId"], "length": 0, - "nextIndex": -1, - "userRecentPlayerList": [], + "userRecentPlayerList": [], # playUserId, playUserName, playDate, friendPoint } def handle_get_user_course_api_request(self, data: Dict) -> Dict: @@ -916,6 +915,10 @@ class ChuniBase: self.data.item.put_login_bonus( user_id, self.version, login["presetId"], isWatched=True ) + + if "userRecentPlayerList" in upsert: # TODO: Seen in Air, maybe implement sometime + for rp in upsert["userRecentPlayerList"]: + pass return {"returnCode": "1"}