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