From 77d01254c6f3300a27363a17373747faac876cd0 Mon Sep 17 00:00:00 2001 From: chen_wei <109205133+chensgit169@users.noreply.github.com> Date: Fri, 28 Jul 2023 22:17:57 +0800 Subject: [PATCH] Update tasks.py patch to fix api-token out-of-date problem --- src/quafu/tasks/tasks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/quafu/tasks/tasks.py b/src/quafu/tasks/tasks.py index e9a7761..56f20fd 100644 --- a/src/quafu/tasks/tasks.py +++ b/src/quafu/tasks/tasks.py @@ -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