From 35a09ad2775725866a5a4f2c12a45f07ad10894e Mon Sep 17 00:00:00 2001 From: Jennifer Taylor Date: Fri, 20 Aug 2021 04:44:17 +0000 Subject: [PATCH] Fix extid showing as all 0's on rivals pages and bishi profiles. --- bemani/frontend/base.py | 2 +- bemani/frontend/bishi/bishi.py | 2 +- bemani/frontend/ddr/endpoints.py | 2 +- bemani/frontend/iidx/endpoints.py | 2 +- bemani/frontend/jubeat/endpoints.py | 2 +- bemani/frontend/popn/endpoints.py | 2 +- bemani/frontend/reflec/endpoints.py | 2 +- bemani/frontend/sdvx/endpoints.py | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/bemani/frontend/base.py b/bemani/frontend/base.py index 3a126a8..a2296e8 100644 --- a/bemani/frontend/base.py +++ b/bemani/frontend/base.py @@ -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'), } diff --git a/bemani/frontend/bishi/bishi.py b/bemani/frontend/bishi/bishi.py index d226ad4..238a2eb 100644 --- a/bemani/frontend/bishi/bishi.py +++ b/bemani/frontend/bishi/bishi.py @@ -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'), diff --git a/bemani/frontend/ddr/endpoints.py b/bemani/frontend/ddr/endpoints.py index d7a0ba6..8361ef2 100644 --- a/bemani/frontend/ddr/endpoints.py +++ b/bemani/frontend/ddr/endpoints.py @@ -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) diff --git a/bemani/frontend/iidx/endpoints.py b/bemani/frontend/iidx/endpoints.py index 10d116d..126f3cc 100644 --- a/bemani/frontend/iidx/endpoints.py +++ b/bemani/frontend/iidx/endpoints.py @@ -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) diff --git a/bemani/frontend/jubeat/endpoints.py b/bemani/frontend/jubeat/endpoints.py index d7567f1..0be2396 100644 --- a/bemani/frontend/jubeat/endpoints.py +++ b/bemani/frontend/jubeat/endpoints.py @@ -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) diff --git a/bemani/frontend/popn/endpoints.py b/bemani/frontend/popn/endpoints.py index 9d4e704..3bea7a3 100644 --- a/bemani/frontend/popn/endpoints.py +++ b/bemani/frontend/popn/endpoints.py @@ -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) diff --git a/bemani/frontend/reflec/endpoints.py b/bemani/frontend/reflec/endpoints.py index 30d282c..66b7ab0 100644 --- a/bemani/frontend/reflec/endpoints.py +++ b/bemani/frontend/reflec/endpoints.py @@ -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) diff --git a/bemani/frontend/sdvx/endpoints.py b/bemani/frontend/sdvx/endpoints.py index e576ba4..9cb377f 100644 --- a/bemani/frontend/sdvx/endpoints.py +++ b/bemani/frontend/sdvx/endpoints.py @@ -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)