From b0475a04158ef994e7769aa17c28c08ba1967296 Mon Sep 17 00:00:00 2001 From: molaboon Date: Sat, 3 Jul 2021 14:17:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=B8=E6=A0=A1=E5=AE=98=E7=B6=B2=E8=A6=96?= =?UTF-8?q?=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Ncnu.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Ncnu.py b/Ncnu.py index b6f8863..74b6632 100644 --- a/Ncnu.py +++ b/Ncnu.py @@ -4,8 +4,8 @@ from config import CONFIG from tkinter import messagebox from tkhtmlview import HTMLLabel -def createNcnuWin(): - ncnu = NcnuAPI(CONFIG['NCNU']['username'], CONFIG['NCNU']['password']) +def createNcnuWin(ncnu): + if ncnu.status: def dlCurriculum(sem): if ncnu.getCourseTable(sem): @@ -96,5 +96,3 @@ def createNcnuWin(): else: print("NCNU 教務系統登入失敗") - -createNcnuWin()