From 1bc2b76f95d6a2abaa3db10ada337cc13f51a5fc Mon Sep 17 00:00:00 2001
From: aa <aaaa>
Date: Sun, 19 Dec 2021 01:12:06 +0100
Subject: [PATCH] Oops

---
 notobot.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/notobot.js b/notobot.js
index e730b36..ba20bff 100644
--- a/notobot.js
+++ b/notobot.js
@@ -37,6 +37,7 @@ let gradesDone = []; //Notes déjà traitées
 function aurionRequest(url, data=null, method='GET' ){
     var options = {
         method: method,
+	https:{rejectUnauthorized: false},
         cookieJar: cookieJar
     }
 
@@ -230,7 +231,7 @@ async function start(){
             const execution = await getExecution();
             await login(execution);
             await lookForGrades();
-            await new Promise(1000*60*15); //Attente de 15 min
+            await new Promise(resolve => setTimeout(resolve,1000*60*15)); //Attente de 15 min
         }
     }catch(e){
         if(e.response && e.response.statusCode === 401){
@@ -241,4 +242,4 @@ async function start(){
     }
 }
 
-start();
\ No newline at end of file
+start();
-- 
GitLab