Skip to content

Commit

Permalink
Merge pull request #26 from jupyter-naas/manual-testing-and-fixes
Browse files Browse the repository at this point in the history
fix: Working on few fixes
  • Loading branch information
Dr0p42 authored Oct 4, 2023
2 parents db8eb1c + 257aad6 commit a94877f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def create(
image: str = typer.Option(..., "--image", help="Image of the space"),
domain: str = typer.Option("", "--domain", "-d", help="Domain of the space"),
env: str = typer.Option(
None,
{},
"--env",
help="Environment variables for the Space container",
),
Expand Down Expand Up @@ -258,6 +258,7 @@ def list(
space_list = self.domain.list(page_size=page_size, page_number=page_number)

data = []
headers = []

# Extract the data and headers
for space in space_list.spaces:
Expand All @@ -271,7 +272,7 @@ def list(

data.append(list(_space_dict.values())) # Append a list of values to data

headers = [key.upper() for key in _space_dict.keys()]
headers = [key.upper() for key in _space_dict.keys()]

if len(data) == 0:
print("No matching results found.")
Expand Down

0 comments on commit a94877f

Please sign in to comment.