formatting
This commit is contained in:
parent
dd76c2da76
commit
3bc9eb50b0
@ -231,9 +231,15 @@ class StarCitizen(commands.Cog):
|
|||||||
|
|
||||||
if status_json["summaryStatus"] != "ok":
|
if status_json["summaryStatus"] != "ok":
|
||||||
# Extract systems with unresolved issues
|
# 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
|
# Remove any single quote characters from the URL
|
||||||
current_incident_url = unresolved_issue_permalink.replace("'", "")
|
current_incident_url = unresolved_issue_permalink.replace("'", "")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user