Open jeremywrnr opened 9 years ago
Is it possible/feasible to determine the correct tab from its content? I think the best way to address this is to have a config file that pairs course names/CRNs to the tab name.
Note that professors don't necessarily put all useful documents/info in one tab. I think it'd be best to be able to access all content from all tabs. We could have a get_tabs
function that returns a delimited list of all the tabs (or maybe an array, since we're using bash). Commands like bb_materials
could then look for materials in every tab for a given course, so it's guaranteed not to miss anything. If a course only uses "Course Materials", as it seems most courses do, then it just shouldn't find anything in any of the other tabs.
Another, possibly simpler solution would be to just check against common words, like 'Syllabus', 'Lab', 'Assignments'... etc.
However, I think @joeljk13 's idea to get all tabs and then check them for uploaded files would be best.
Sometimes professors can rename the 'Course Materials' tab, which causes
get_assignments
to miss whatever is uploaded in that tab.