I forgot some hardcoded data
This commit is contained in:
parent
f8357ca09a
commit
874f628699
11
main.py
11
main.py
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user