ONGEKI Rival Functionality #36

Merged
Midorica merged 10 commits from 2TT/artemis:develop into develop 2023-09-23 16:08:16 +00:00
1 changed files with 0 additions and 3 deletions
Showing only changes of commit 1f545aed41 - Show all commits

View File

@ -1003,16 +1003,13 @@ class OngekiBase:
Added in Bright
"""
rivals = []
print(data)
for rival in data["userRivalList"]:
name = self.data.profile.get_profile_name(
rival["rivalUserId"], self.version
)
if name is None:
continue
print(name)
rivals.append({"rivalUserId": rival["rivalUserId"], "rivalUserName": name})
print(rivals)
return {
"userId": data["userId"],
"length": len(rivals),