diff --git a/dota_hero_grid_generator.py b/dota_hero_grid_generator.py index ce215d9..af3f699 100644 --- a/dota_hero_grid_generator.py +++ b/dota_hero_grid_generator.py @@ -2,6 +2,7 @@ import json from pathlib import Path import aiohttp +import socket import sys import vdf @@ -52,7 +53,12 @@ def __init__(self, name, position, ranks, pickrate_treshold): async def create(cls, *args, **kwargs): inst = cls(*args, **kwargs) - async with aiohttp.ClientSession() as session: + connector = aiohttp.TCPConnector( + family=socket.AF_INET, + ssl=False, + ) + + async with aiohttp.ClientSession(connector=connector) as session: query = f''' {{ heroStats {{