Skip to content

Commit 9d9179c

Browse files
committed
fix: document list-download & fix one bug
create the files dir ahead of time so the main js script doesn't fail
1 parent 7994722 commit 9d9179c

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

utilities/facfiles/list-download.fish

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ set file $argv[1]
44
[ -z $file ] && set file faculty.txt
55

66
mkdir -p faculty
7+
mkdir -p files
78

89
for name in (cat $file)
910
echo (date) "Downloading syllabi for $name"

utilities/facfiles/readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ To run the script:
1313

1414
If running multiple times, remember to clean out the files directory in between. Included is a "list-download.fish" script to iterate over a list of names in a "faculty.txt" file, creating a folder for each instructor's syllabi.
1515

16+
Generally, for APT requests for multiple faculty, we set the start/stop terms in .facfilesrc, paste the faculty names into faculty.txt, and run `./list-download.fish`. Be aware if a faculty member has changed their name we'll need all name forms in the list.
17+
1618
## Sections
1719

1820
For requests for particular section codes, use `node sections --match ARTED-1002` where the `--match` parameter is checked against the section code. The sections script also supports a `modifiedAfter` parameter to filter search results a little further. If we want all 2023-24 DSMBA syllabi, for instance, we can run `node sections --match DSMBA --modifiedAfter 2023-08-01` since all syllabi would be uploaded after that date.

0 commit comments

Comments
 (0)