Skip to content

Commit

Permalink
format task.py with block
Browse files Browse the repository at this point in the history
  • Loading branch information
C0D3D3V committed Apr 15, 2024
1 parent a572ae0 commit a551a24
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion moodle_dl/downloader/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ def gen_path(storage_path: str, course: Course, file: File):
# TODO: Get mod names automated; all mods should be in a sub-folder
# If the file is located in a folder or in an assignment,
# it should be saved in a sub-folder (with the name of the module).
if file.module_modname.endswith(('assign', 'book', 'data', 'folder', 'forum', 'lesson', 'page', 'quiz', 'workshop')):
if file.module_modname.endswith(
('assign', 'book', 'data', 'folder', 'forum', 'lesson', 'page', 'quiz', 'workshop')
):
return PT.path_of_file_in_module(
storage_path, course_name, file.section_name, file.module_name, file.content_filepath
)
Expand Down

0 comments on commit a551a24

Please sign in to comment.