debugging
This commit is contained in:
@@ -21,7 +21,9 @@ async def populate_faction(faction_id: int, kind: str):
|
||||
#Fetch members + FFScouter estimates once and store in STATE.
|
||||
#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:
|
||||
async with aiohttp.ClientSession() as session:
|
||||
|
||||
Reference in New Issue
Block a user