Fix filepath-related crashes, organize files better, download single-student submissions, fix dependencies, etc. #6

Merged
17acres merged 10 commits from master into master 2021-07-09 17:06:15 -06:00

10 Commits

Author SHA1 Message Date
17acres 16911fb8fb Fix formatting 2021-07-03 12:48:12 -04:00
17acres 02887beffe Update README to match change of directory names 2021-07-03 12:46:24 -04:00
17acres 114f8e95ea Add missing pyyaml dependency to lists 2021-07-03 12:44:56 -04:00
17acres d9b6c66c33 Fix 66696c5 so folder paths work properly 2021-05-06 13:18:55 -04:00
17acres 63151c3075 Don't create user id subfolder for submissions if only 1 exists 2021-05-06 13:18:02 -04:00
17acres 66696c5733 Replace important invalid characters in filename strings with useful separators 2021-05-06 13:09:56 -04:00
17acres bb0633a8e7 Gitignore default output directory 2021-05-06 12:46:17 -04:00
17acres bcf362c46a Fix accidental commenting-out of features 2021-05-06 12:09:29 -04:00
17acres ad174fcbb5 Handle student-mode submissions and teacher-mode submissions the same
Treat submissions from the list of submissions from every student the same as submissions from a single individual user (student) so they are downloaded the same and processed. Before, it seems like it just didn't care to download submission attachments for single-student-account-only individual submissions. Now, handle both types the same. This means that there are a lot of single-element lists of submissions in the final output if the user is a student, but it makes the code simpler. Could clean up those lists later.

Also, display the different types of errors in fetching submissions.
2021-05-06 02:19:01 -04:00
17acres 2040415d1a Fix valid filename crashes, organize files more
1. Fixes issues where the program crashes because things like assignment names aren't valid filenames.
Makes the following improvements:
2. Stores assignment files in an "assignments" subfolder.
3. Doesn't make attachment directory if there are no attachments.
4. Organizes course files inside subfolders as created on Canvas (requiring the makeValidFolderPath function to sanitize the path but leave slashes)
2021-05-05 16:33:36 -04:00