forked from Dniel97/artemis
Merge branch 'develop' into idac
This commit is contained in:
commit
c741c052e9
@ -34,7 +34,8 @@ class Utils:
|
||||
|
||||
@classmethod
|
||||
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
|
||||
def get_title_port(cls, cfg: CoreConfig):
|
||||
|
@ -44,7 +44,7 @@ class OngekiFrontend(FE_Base):
|
||||
|
||||
self.version = usr_sesh.ongeki_version
|
||||
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_data = {
|
||||
"userRivalList": rival_list,
|
||||
|
Loading…
Reference in New Issue
Block a user