Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
bubriks committed May 30, 2024
1 parent 7107ece commit 272de9c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/hopsworks/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def __init__(

@classmethod
def from_response_json(cls, json_dict, project_id, project_name):
if "count" in json_dict:
if "items" in json_dict:
jobs = []
for job in json_dict["items"]:
# Job config should not be decamelized when updated
Expand All @@ -79,7 +79,6 @@ def from_response_json(cls, json_dict, project_id, project_name):
)
)
return jobs
# TODO: fix backend to set count to 0 when no jobs exists
elif "id" not in json_dict:
return []
else:
Expand Down

0 comments on commit 272de9c

Please sign in to comment.