1
0
mirror of synced 2025-01-18 14:14:03 +01:00

Fix extid showing as all 0's on rivals pages and bishi profiles.

This commit is contained in:
Jennifer Taylor 2021-08-20 04:44:17 +00:00
parent 40dbf1d6b9
commit 35a09ad277
8 changed files with 8 additions and 8 deletions

View File

@ -77,7 +77,7 @@ class FrontendBase(ABC):
def format_profile(self, profile: Profile, playstats: ValidatedDict) -> Dict[str, Any]:
return {
'name': profile.get_str('name'),
'extid': ID.format_extid(profile.get_int('extid')),
'extid': ID.format_extid(profile.extid),
'first_play_time': playstats.get_int('first_play_timestamp'),
'last_play_time': playstats.get_int('last_play_timestamp'),
}

View File

@ -79,7 +79,7 @@ class BishiBashiFrontend(FrontendBase):
return {
'name': name,
'extid': ID.format_extid(profile.get_int('extid')),
'extid': ID.format_extid(profile.extid),
'shop': shop,
'shop_area': shop_area,
'first_play_time': playstats.get_int('first_play_timestamp'),

View File

@ -506,7 +506,7 @@ def searchrivals() -> Dict[str, Any]:
matches = set()
profiles = g.data.remote.user.get_all_profiles(GameConstants.DDR, version)
for (userid, profile) in profiles:
if profile.get_int('extid') == extid or profile.get_str('name').lower() == name.lower():
if profile.extid == extid or profile.get_str('name').lower() == name.lower():
matches.add(userid)
info = frontend.get_all_player_info(list(matches), allow_remote=True)

View File

@ -577,7 +577,7 @@ def searchrivals() -> Dict[str, Any]:
matches = set()
profiles = g.data.remote.user.get_all_profiles(GameConstants.IIDX, version)
for (userid, profile) in profiles:
if profile.get_int('extid') == extid or profile.get_str('name').lower() == djname.lower():
if profile.extid == extid or profile.get_str('name').lower() == djname.lower():
matches.add(userid)
djinfo = frontend.get_all_player_info(list(matches), allow_remote=True)

View File

@ -392,7 +392,7 @@ def searchrivals() -> Dict[str, Any]:
matches = set()
profiles = g.data.remote.user.get_all_profiles(GameConstants.JUBEAT, version)
for (userid, profile) in profiles:
if profile.get_int('extid') == extid or profile.get_str('name').lower() == name.lower():
if profile.extid == extid or profile.get_str('name').lower() == name.lower():
matches.add(userid)
playerinfo = frontend.get_all_player_info(list(matches), allow_remote=True)

View File

@ -418,7 +418,7 @@ def searchrivals() -> Dict[str, Any]:
matches = set()
profiles = g.data.remote.user.get_all_profiles(GameConstants.POPN_MUSIC, version)
for (userid, profile) in profiles:
if profile.get_int('extid') == extid or profile.get_str('name').lower() == name.lower():
if profile.extid == extid or profile.get_str('name').lower() == name.lower():
matches.add(userid)
playerinfo = frontend.get_all_player_info(list(matches), allow_remote=True)

View File

@ -438,7 +438,7 @@ def searchrivals() -> Dict[str, Any]:
matches = set()
profiles = g.data.remote.user.get_all_profiles(GameConstants.REFLEC_BEAT, version)
for (userid, profile) in profiles:
if profile.get_int('extid') == extid or profile.get_str('name').lower() == name.lower():
if profile.extid == extid or profile.get_str('name').lower() == name.lower():
matches.add(userid)
playerinfo = frontend.get_all_player_info(list(matches), allow_remote=True)

View File

@ -414,7 +414,7 @@ def searchrivals() -> Dict[str, Any]:
matches = set()
profiles = g.data.remote.user.get_all_profiles(GameConstants.SDVX, version)
for (userid, profile) in profiles:
if profile.get_int('extid') == extid or profile.get_str('name').lower() == name.lower():
if profile.extid == extid or profile.get_str('name').lower() == name.lower():
matches.add(userid)
playerinfo = frontend.get_all_player_info(list(matches), allow_remote=True)