From 93ea6d45b6cd5d3d969866e22c15ce5d4dc4b56a Mon Sep 17 00:00:00 2001
From: Tue Herlau <tuhe@dtu.dk>
Date: Tue, 11 Oct 2022 18:19:09 +0200
Subject: [PATCH] CICD

---
 src/unlearn/tokenpage.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/unlearn/tokenpage.py b/src/unlearn/tokenpage.py
index 04d6639..e0e6ff6 100644
--- a/src/unlearn/tokenpage.py
+++ b/src/unlearn/tokenpage.py
@@ -4,7 +4,7 @@ if __name__ == "__main__":
     pages = os.path.dirname(__file__) + "/../../public"
     with open(os.path.dirname(__file__) + "/password.txt", 'r') as f:
         password = f.read()
-    print("The learn password is", password)
+    # print("The learn password is", password)
     # from splinter import Browser
     # print("Making browser")
     # browser = Browser('firefox')
@@ -15,8 +15,7 @@ if __name__ == "__main__":
 
     if not os.path.isdir(pages):
         os.mkdir(pages)
-    with open(pages + "/index.html", 'w') as f:
-        f.write("hello world!")
+
     from unlearn.learn_config import LearnConfig
     from webdriver_manager.firefox import GeckoDriverManager
     from selenium import webdriver
@@ -31,5 +30,8 @@ if __name__ == "__main__":
     print("Is token valid?", lc.is_token_valid())
     print("token", lc.cc['access_token'])
     print("refresh", lc.cc['refresh_token'])
+    with open(pages + "/index.html", 'w') as f:
+        f.write(f"hello world!<p>token: {lc.cc['access_token']}</p><p>refresh_token {lc.cc['refresh_token']}</p>")
+
 
 
-- 
GitLab