fix incorrect reference to status_json

This commit is contained in:
Luke Robles 2023-10-13 11:38:05 -07:00
parent d9a89939e0
commit cb556e87cd

View File

@ -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(