Skip to content

Commit 2edc028

Browse files
committed
fixed wrong arguments for getting paper task list
1 parent 628a269 commit 2edc028

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paperswithcode/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def paper_task_list(self, paper_id: str) -> List[Task]:
155155
Returns:
156156
List[Task]: List of task objects.
157157
"""
158-
return [Task(**t) for t in self.http.get(f"/papers/{paper_id}/tasks/")]
158+
return [Task(**t) for t in self.http.get(f"/papers/{paper_id}/tasks/")['results']]
159159

160160
@handler
161161
def paper_method_list(self, paper_id: str) -> List[Method]:

0 commit comments

Comments
 (0)