Skip to content

Commit

Permalink
Merge pull request #39 from ScQ-Cloud/chensgit169-patch-2
Browse files Browse the repository at this point in the history
Update tasks.py
  • Loading branch information
Zhaoyilunnn committed Jul 28, 2023
2 parents 29f5ead + 59fcf88 commit b773a01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/quafu/tasks/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def retrieve(self, taskid: str) -> ExecResult:
data = {"task_id": taskid}
url = User.exec_recall_api

headers = {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8', 'api_token': self.token}
headers = {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8', 'api_token': self.user.api_token}
res = requests.post(url, headers=headers, data=data)

res_dict = json.loads(res.text)
Expand Down

0 comments on commit b773a01

Please sign in to comment.