formatting
This commit is contained in:
parent
f9c03cb336
commit
633854a50c
@ -231,9 +231,15 @@ class StarCitizen(commands.Cog):
|
||||
|
||||
if status_json["summaryStatus"] != "ok":
|
||||
# Extract systems with unresolved issues
|
||||
systems_with_issues = [system for system in status_json["systems"] if system["unresolvedIssues"]]
|
||||
systems_with_issues = [
|
||||
system
|
||||
for system in status_json["systems"]
|
||||
if system["unresolvedIssues"]
|
||||
]
|
||||
|
||||
unresolved_issue_permalink = systems_with_issues[0]["unresolvedIssues"][0]["permalink"]
|
||||
unresolved_issue_permalink = systems_with_issues[0]["unresolvedIssues"][0][
|
||||
"permalink"
|
||||
]
|
||||
# Remove any single quote characters from the URL
|
||||
current_incident_url = unresolved_issue_permalink.replace("'", "")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user