Skip to content

Commit

Permalink
Update tasks.py
Browse files Browse the repository at this point in the history
patch to fix api-token out-of-date problem
  • Loading branch information
chensgit169 authored Jul 28, 2023
1 parent e039948 commit 77d0125
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/quafu/tasks/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ class Task(object):
"""

def __init__(self, user=User()):
# update api-token, a patch to be deleted in the future
user._api_token = user._load_account_token()
self.user = user

self.shots = 1000
self.tomo = False
self.compile = True
Expand Down

0 comments on commit 77d0125

Please sign in to comment.