Skip to content

Commit

Permalink
fix: local var shadowing import (#7376)
Browse files Browse the repository at this point in the history
resolves #7373

(cherry picked from commit 73f0fdd)
  • Loading branch information
TobiasGoerke committed Oct 23, 2023
1 parent 3c958b5 commit 04e7766
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 04e7766

Please sign in to comment.