diff --git a/README.md b/README.md index 61a3868..3ace696 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Major changes: - Added progress bars. - Use threading where possible. - Save assignment attachements. -- Download all user files (as seen in the file manager at `/files` on your Canvas platform.) +- Save all user files. --- @@ -26,7 +26,7 @@ The tool exports all of the following data for each course: - Modules - Single file webpage of the Canvas page for assignments, announcements, discussions, and modules -Your data in will be exported in JSON format and organized into folders per term. +Additionally, all your files stored on Canvas (such as historic submissions and attachments) will be downloaded. ## Install diff --git a/module/download_canvas.py b/module/download_canvas.py index b7a3dcd..13b53ab 100644 --- a/module/download_canvas.py +++ b/module/download_canvas.py @@ -217,6 +217,6 @@ def download_course_module_pages(api_url, course_view, cookies_path): for module in tqdm(list(course_view.modules), desc='Downloading Module Pages'): bar = tqdm(list(module.items), leave=False, desc=module.name) futures = [executor.submit(download_module_item, module, item, modules_dir, cookies_path) for item in module.items] - for future in as_completed(futures): + for _ in as_completed(futures): bar.update() bar.close() diff --git a/module/user_files.py b/module/user_files.py index abbd0fc..4c3ab3a 100644 --- a/module/user_files.py +++ b/module/user_files.py @@ -31,9 +31,5 @@ def download_user_files(canvas: canvasapi.Canvas, base_path: str): with ThreadPoolExecutor(max_workers=10) as executor: bar = tqdm(files, desc='Downloading User Files') futures = [executor.submit(do_download, task) for task in files] - for future in as_completed(futures): + for _ in as_completed(futures): bar.update() - - # for file, out_path in tqdm(files, desc='Downloading User Files'): - # if not out_path.exists(): - # file.download(out_path)