From 874f628699b23739d65a11be34058370c7691d00 Mon Sep 17 00:00:00 2001 From: Mattia Mascarello Date: Mon, 1 May 2023 01:14:21 +0200 Subject: [PATCH] I forgot some hardcoded data --- main.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/main.py b/main.py index 102fbbd..53be22a 100644 --- a/main.py +++ b/main.py @@ -22,17 +22,10 @@ MOODLE_USERNAME = os.getenv('MOODLE_USERNAME') PASSWORD = os.getenv('PASSWORD') MOUNT = os.getenv('MOUNT') -print(SITE, MOODLE_USERNAME, PASSWORD, MOUNT) -m = Moodle(SITE, "mattia.mascarello", PASSWORD) +m = Moodle(SITE, MOODLE_USERNAME, PASSWORD) m.login() print(m.get_user().__dict__) -""" -# print(m.get_category_by_id(402)) -cont = m.get_course_content(2528) -for c in cont: - print(c.name) -""" logging.basicConfig(level=logging.DEBUG) if __name__ == '__main__': - FUSE(MoodleFS(m), "/home/mattia/moodle", foreground=True, allow_other=True) + FUSE(MoodleFS(m), MOUNT, foreground=True, allow_other=True)