stuff w/ curric

This commit is contained in:
Coding with Peter 2024-04-15 11:52:23 -07:00
parent 9e485d7641
commit 84f0a97529
1 changed files with 7 additions and 0 deletions

View File

@ -847,7 +847,13 @@ def course_rank():
csvwriter.writerow( [ version['d']+version['n'], version['c'], version['s'], version['m'], version['d'], version['n'], len(version['o']) ]) csvwriter.writerow( [ version['d']+version['n'], version['c'], version['s'], version['m'], version['d'], version['n'], len(version['o']) ])
def de_classpaths():
outfile = codecs.open('cache/courses/all_de_classpaths.txt', 'w','utf-8')
areas = ['Distance Education/1/2/Justification/Need/Justification','/Distance Education/1/3/Content Presentation/<b>A. Methods of Instruction</b>/','/Distance Education/1/3/Content Presentation/<b>B. Instructional Materials and Resources:</b><br/>1. What materials and resources will you provide your students <b>in a virtual environment</b>?/','/Distance Education/4/Assessment/','/Distance Education/4/Methods of Instruction/','/Distance Education/1/3/Content Presentation/2. Have you assessed the use of high-quality open educational resources (OER) to help bridge the digital divide for students in the course? If so, please describe how you will be using them./','/Distance Education/4/Instructional Materials and Resources/','/Distance Education/1/3/Content Presentation/3. How will students be provided access to library materials and other learning resources <b>in a virtual environment</b>? (virtual reference librarian, research guides, digital content, etc.)/','/Distance Education/4/<b>How will students be provided access to library materials and what support will students be provided to help them locate and use these materials?</b><br/>Library and Other Learning Resources/','/Distance Education/1/3/Content Presentation/4. How will students access equitable student support services <b>in a virtual environment</b>? (tutoring, financial aid, counseling, etc.)/','/Distance Education/4/Accommodations for Students with Disabilities/','/6/Distance Education/4/Office Hours/','/Contact/Contact/Description/']
for area in areas:
with codecs.open('cache/courses/allclasspaths.txt', 'r','utf-8') as infile:
outfile.writelines(line for line in infile if area in line)
if __name__ == "__main__": if __name__ == "__main__":
@ -857,6 +863,7 @@ if __name__ == "__main__":
3: ['courses - path style to html catalog', course_path_style_2_html], 3: ['courses - path style to html catalog', course_path_style_2_html],
4: ['show course outcomes', all_outcomes], 4: ['show course outcomes', all_outcomes],
5: ['courses - rank by all versions', course_rank], 5: ['courses - rank by all versions', course_rank],
6: ['extract de info from class paths', de_classpaths],
10: ['fetch all programs', fetch_all_programs], 10: ['fetch all programs', fetch_all_programs],
11: ['process all programs', path_style_prog], 11: ['process all programs', path_style_prog],
12: ['programs - path style to html catalog', path_style_2_html], 12: ['programs - path style to html catalog', path_style_2_html],