From 77ac0f87139e4bb802ec160f09a6b934b1419c98 Mon Sep 17 00:00:00 2001 From: tiksan Date: Tue, 1 Oct 2024 12:39:07 -0500 Subject: [PATCH] Fix `/faction members revivable` for changed `/v2/faction/basic` endpoint Signed-off-by: tiksan --- application/skynet/commands/faction/faction.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/skynet/commands/faction/faction.py b/application/skynet/commands/faction/faction.py index 9b114d49..0763dfcd 100644 --- a/application/skynet/commands/faction/faction.py +++ b/application/skynet/commands/faction/faction.py @@ -318,7 +318,7 @@ def revivable(): version=2, ) - payload[0]["title"] = f"Revivable Members of {member_data['name']}" + payload[0]["title"] = f"Revivable Members of {member_data['basic']['name']}" not_revivable_count = 0 for member in member_data["members"]: @@ -333,7 +333,7 @@ def revivable(): if (len(payload[-1]["description"]) + 1 + len(line_payload)) > 4096: payload.append( { - "title": f"Revivable Members of {member_data['name']}", + "title": f"Revivable Members of {member_data['basic']['name']}", "description": "", "color": SKYNET_INFO, } @@ -384,7 +384,7 @@ def revivable_other_faction(): member_data = tornget(f"faction/{faction.tid}?selections=basic,members", api_user.key, version=2) - payload[0]["title"] = f"Revivable Members of {member_data['name']}" + payload[0]["title"] = f"Revivable Members of {member_data['basic']['name']}" not_revivable_count = 0 for member in member_data["members"]: @@ -399,7 +399,7 @@ def revivable_other_faction(): if (len(payload[-1]["description"]) + 1 + len(line_payload)) > 4096: payload.append( { - "title": f"Revivable Members of {member_data['name']}", + "title": f"Revivable Members of {member_data['basic']['name']}", "description": "", "color": SKYNET_INFO, }