Merge branch 'develop' into idac

This commit is contained in:
Dniel97 2024-04-01 20:09:34 +02:00
commit c741c052e9
Signed by untrusted user: Dniel97
GPG Key ID: 6180B3C768FB2E08
2 changed files with 3 additions and 2 deletions

View File

@ -34,7 +34,8 @@ class Utils:
@classmethod @classmethod
def get_ip_addr(cls, req: Request) -> str: def get_ip_addr(cls, req: Request) -> str:
return req.headers.get("x-forwarded-for", req.client.host) ip = req.headers.get("x-forwarded-for", req.client.host)
return ip.split(", ")[0]
@classmethod @classmethod
def get_title_port(cls, cfg: CoreConfig): def get_title_port(cls, cfg: CoreConfig):

View File

@ -44,7 +44,7 @@ class OngekiFrontend(FE_Base):
self.version = usr_sesh.ongeki_version self.version = usr_sesh.ongeki_version
if usr_sesh.user_id > 0: if usr_sesh.user_id > 0:
profile_data =self.data.profile.get_profile_data(usr_sesh.user_id, self.version) profile_data =await self.data.profile.get_profile_data(usr_sesh.user_id, self.version)
rival_list = await self.data.profile.get_rivals(usr_sesh.user_id) rival_list = await self.data.profile.get_rivals(usr_sesh.user_id)
rival_data = { rival_data = {
"userRivalList": rival_list, "userRivalList": rival_list,