aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gui.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gui.py b/gui.py
index bdb3868..c15c61b 100644
--- a/gui.py
+++ b/gui.py
@@ -110,7 +110,7 @@ class MoodleFetcher(QThread):
log.debug(course)
return []
else:
- sections = self.api.core_get_contents(courseid = str(course["id"])).json()
+ sections = self.api.core_course_get_contents(courseid = str(course["id"])).json()
if "exception" in sections:
log.error(f"failed to load sections from course with id {course['id']} ({course['shortname']})")
log.debug(sections)
@@ -159,8 +159,10 @@ class MoodleTreeView(QTreeWidget):
@pyqtSlot()
def onWorkerDone(self):
+ log.debug("worker done")
self.setSortingEnabled(True)
+# FIXME: I bet this logger is in another thread and f*cks up
class QPlainTextEditLogger(logging.Handler):
def __init__(self, parent):
super().__init__()