fix incorrect reference to status_json
This commit is contained in:
parent
d9a89939e0
commit
cb556e87cd
@ -227,8 +227,9 @@ class StarCitizen(commands.Cog):
|
||||
status_url = "https://status.robertsspaceindustries.com"
|
||||
|
||||
rsi_incident_file = "/tmp/rsi_incident"
|
||||
status_json = requests.get(status_url + "/index.json").json()
|
||||
|
||||
if requests.get(status_url + "/index.json").json()["summaryStatus"] != "ok":
|
||||
if status_json["summaryStatus"] != "ok":
|
||||
# Look at all the systems in the API and filter out the ones whos "unresolvedIssues" list is not empty,
|
||||
# Then parse out the "permalink" value
|
||||
current_incident_url = list(
|
||||
|
Loading…
x
Reference in New Issue
Block a user