I forgot some hardcoded data

This commit is contained in:
Mattia Mascarello 2023-05-01 01:14:21 +02:00 committed by GitHub
parent f8357ca09a
commit 874f628699
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

11
main.py
View File

@ -22,17 +22,10 @@ MOODLE_USERNAME = os.getenv('MOODLE_USERNAME')
PASSWORD = os.getenv('PASSWORD') PASSWORD = os.getenv('PASSWORD')
MOUNT = os.getenv('MOUNT') MOUNT = os.getenv('MOUNT')
print(SITE, MOODLE_USERNAME, PASSWORD, MOUNT) m = Moodle(SITE, MOODLE_USERNAME, PASSWORD)
m = Moodle(SITE, "mattia.mascarello", PASSWORD)
m.login() m.login()
print(m.get_user().__dict__) 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) logging.basicConfig(level=logging.DEBUG)
if __name__ == '__main__': if __name__ == '__main__':
FUSE(MoodleFS(m), "/home/mattia/moodle", foreground=True, allow_other=True) FUSE(MoodleFS(m), MOUNT, foreground=True, allow_other=True)