diff --git a/components/crud-web-apps/jupyter/backend/apps/common/status.py b/components/crud-web-apps/jupyter/backend/apps/common/status.py index ab675387..c4a2c92a 100644 --- a/components/crud-web-apps/jupyter/backend/apps/common/status.py +++ b/components/crud-web-apps/jupyter/backend/apps/common/status.py @@ -59,9 +59,9 @@ def process_status(notebook): def get_empty_status(notebook): creation_timestamp = notebook.get("metadata", {}).get("creationTimestamp") - status = notebook.get("status", {}) - container_state = status.get("containerState") - conditions = status.get("conditions") + notebook_status = notebook.get("status", {}) + container_state = notebook_status.get("containerState") + conditions = notebook_status.get("conditions") # Convert a date string of a format to datetime object nb_creation_time = dt.datetime.strptime(