Skip to content

Commit

Permalink
Fix /faction members revivable for changed /v2/faction/basic endp…
Browse files Browse the repository at this point in the history
…oint

Signed-off-by: tiksan <webmaster@deek.sh>
  • Loading branch information
dssecret committed Oct 1, 2024
1 parent e03c5b3 commit 77ac0f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions application/skynet/commands/faction/faction.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]:
Expand All @@ -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,
}
Expand Down Expand Up @@ -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"]:
Expand All @@ -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,
}
Expand Down

0 comments on commit 77ac0f8

Please sign in to comment.