Skip to content

Commit

Permalink
fix get
Browse files Browse the repository at this point in the history
  • Loading branch information
skoulouzis committed Feb 10, 2025
1 parent 5325935 commit a3829b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/services/cell_extractor/header_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def _infer_cell_interface_vars(
if header is None:
return []
vars = []
items = header['NaaVRE']['cell'].get_base_image_tags(item_type)
items = header['NaaVRE']['cell'].get(item_type)
if items is None:
return []
for item in items:
Expand Down Expand Up @@ -263,7 +263,7 @@ def get_cell_secrets(self) -> list[dict]:
def get_cell_confs(self) -> list[dict]:
if self.cell_header is None:
return []
items = self.cell_header['NaaVRE']['cell'].get_base_image_tags('confs')
items = self.cell_header['NaaVRE']['cell'].get('confs')
if items is None:
return []
confs = []
Expand All @@ -283,7 +283,7 @@ def get_cell_confs(self) -> list[dict]:
def get_cell_dependencies(self, confs) -> list[dict]:
if self.cell_header is None:
return []
items = self.cell_header['NaaVRE']['cell'].get_base_image_tags(
items = self.cell_header['NaaVRE']['cell'].get(
'dependencies')
if items is None:
return []
Expand Down
2 changes: 1 addition & 1 deletion app/services/cell_extractor/r_header_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def __init__(self, notebook_data, base_image_tags_url: str):
def get_cell_confs(self) -> list[dict]:
if self.cell_header is None:
return []
items = self.cell_header['NaaVRE']['cell'].get_base_image_tags('confs')
items = self.cell_header['NaaVRE']['cell'].get('confs')
if items is None:
return []
confs = []
Expand Down

0 comments on commit a3829b0

Please sign in to comment.