Skip to content

Commit 272de9c

Browse files
committed
init
1 parent 7107ece commit 272de9c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

python/hopsworks/job.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def __init__(
6464

6565
@classmethod
6666
def from_response_json(cls, json_dict, project_id, project_name):
67-
if "count" in json_dict:
67+
if "items" in json_dict:
6868
jobs = []
6969
for job in json_dict["items"]:
7070
# Job config should not be decamelized when updated
@@ -79,7 +79,6 @@ def from_response_json(cls, json_dict, project_id, project_name):
7979
)
8080
)
8181
return jobs
82-
# TODO: fix backend to set count to 0 when no jobs exists
8382
elif "id" not in json_dict:
8483
return []
8584
else:

0 commit comments

Comments
 (0)