Fix extid showing as all 0's on rivals pages and bishi profiles.
This commit is contained in:
parent
40dbf1d6b9
commit
35a09ad277
@ -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'),
|
||||
}
|
||||
|
@ -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'),
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user