Moodle 視窗
This commit is contained in:
parent
19939f3066
commit
522cd1b7ad
@ -13,9 +13,7 @@ def getIdAndName(course):
|
||||
return coursesId ,courseName
|
||||
|
||||
|
||||
def createMoodleWin():
|
||||
moodle = MoodleAPI(CONFIG['moodle']['username'], CONFIG['moodle']['password'])
|
||||
|
||||
def createMoodleWin(moodle):
|
||||
if moodle.status:
|
||||
# ===== 取得課程ID與名稱 =====
|
||||
c = moodle.getCourses("1092")
|
||||
@ -75,5 +73,3 @@ def createMoodleWin():
|
||||
|
||||
else:
|
||||
print("Moodle 登入失敗")
|
||||
|
||||
createMoodleWin()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user