slo indexing

This commit is contained in:
Coding with Peter 2023-10-02 20:11:53 -07:00
parent 5ccf69b740
commit e53ee2b698
2 changed files with 9 additions and 6 deletions

View File

@ -837,9 +837,10 @@ def all_outcome_results_in_term_sub(termid=''):
def all_linked_outcomes_in_term(termid=''): def all_linked_outcomes_in_term(termid=''):
terms = [172,174,176,178] #terms = [172,174,176,178]
for t in terms: #for t in terms:
all_linked_outcomes_in_term_sub(str(t)) # all_linked_outcomes_in_term_sub(str(t))
all_linked_outcomes_in_term_sub('180')
def all_linked_outcomes_in_term_sub(termid=''): def all_linked_outcomes_in_term_sub(termid=''):

View File

@ -28,7 +28,9 @@ from path_dict import PathDict
NUM_THREADS = 20 NUM_THREADS = 20
get_fresh = 0 get_fresh = 0
sem_courses = getCoursesInTerm(178,get_fresh)
TERM = 180 # fa23
sem_courses = getCoursesInTerm(TERM,get_fresh)
def escape_commas(s): def escape_commas(s):
if ',' in s: if ',' in s:
@ -41,7 +43,7 @@ def escape_commas(s):
print("Got %i courses in current semester." % len(sem_courses)) print("Got %i courses in current semester." % len(sem_courses))
outputfile = codecs.open('cache/slo/outcomes2022.output.txt','w','utf-8') outputfile = codecs.open(f'cache/slo/outcomes_bycourse_{TERM}.output.txt','w','utf-8')
outputfile.write( "coursename,assessed,courseid,outcome_id,points,title,displayname,description,guid\n") outputfile.write( "coursename,assessed,courseid,outcome_id,points,title,displayname,description,guid\n")
def course_slo_getter(q): def course_slo_getter(q):
@ -148,7 +150,7 @@ def ilearn_shell_slo_to_csv(shell_slos):
#ilearn_shell_slo_to_csv(output) ilearn_shell_slo_to_csv(output)