debugging

This commit is contained in:
2026-01-28 16:17:21 -05:00
parent a1ff38424b
commit 52bd3a9af7

View File

@@ -21,7 +21,9 @@ async def populate_faction(faction_id: int, kind: str):
#Fetch members + FFScouter estimates once and store in STATE. #Fetch members + FFScouter estimates once and store in STATE.
#kind: "friendly" or "enemy" #kind: "friendly" or "enemy"
url = f"https://api.torn.com/v2/faction/{faction_id}?selections=members&key={config.TORN_API_KEY}" api_key = config.TORN_API_KEY
print(f"[DEBUG] Using TORN_API_KEY: {api_key[:4]}...{api_key[-4:] if len(api_key) > 8 else '****'}")
url = f"https://api.torn.com/v2/faction/{faction_id}?selections=members&key={api_key}"
try: try:
async with aiohttp.ClientSession() as session: async with aiohttp.ClientSession() as session: