Skip to content
Snippets Groups Projects
Commit 6ee67984 authored by tuhe's avatar tuhe
Browse files

CICD

parent 071ba971
No related branches found
No related tags found
No related merge requests found
Pipeline #8678 canceled
......@@ -132,10 +132,10 @@ class LearnConfig:
def __init__(self, refresh_token=None, password=None):
cc = Cache(directory= os.path.join( os.path.dirname(__file__), "cache") )
# if "refresh_token" in cc:
# del cc['refresh_token']
# if "access_token" in cc:
# del cc['access_token']
if "refresh_token" in cc:
del cc['refresh_token']
if "access_token" in cc:
del cc['access_token']
self.cc = cc
# if refresh_token is not None:
......@@ -157,7 +157,6 @@ class LearnConfig:
else:
if "refresh_token" in cc:
url = "https://auth.brightspace.com/core/connect/token"
print("Getting refresh token using", refresh_token)
refresh_token = cc['refresh_token']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment