gsd 2 years ago
parent
commit
42a62b9ff3
  1. 2
      player.py

2
player.py

@ -292,7 +292,7 @@ class Player:
async def CreateDiscordId(self, discord_id): async def CreateDiscordId(self, discord_id):
async with aiohttp.ClientSession(cookies={ async with aiohttp.ClientSession(cookies={
"secretkey":os.getenv("BACKEND_SECRETKEY")}) as session: "secretkey":os.getenv("BACKEND_SECRETKEY")}) as session:
async with session.post(f"{os.getenv('BACKEND_URL')}/api/discord?discord_id={discord_id}&steam_id={self.steam64}", ssl = False) as response: async with session.post(f"{os.getenv('BACKEND_URL')}/api/discord?discord_id={discord_id}&steam64={self.steam64}", ssl = False) as response:
result = await response.text() result = await response.text()
if response.status == 406: if response.status == 406:
return False return False

Loading…
Cancel
Save