Changeset 3365 for WAeUP_SRP/base/skins/waeup_utilities
- Timestamp:
- 21 Mar 2008, 07:59:33 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_utilities/ti_507_resolve.py
r3361 r3365 44 44 missing_courses = [] 45 45 wrong_modes = {} 46 students_with_missing_courses = [] 46 47 for student in students: 47 48 count += 1 … … 49 50 certificate = certificates.get(student.course,None) 50 51 if certificate is None: 52 students_with_missing_courses += student.id, 51 53 if student.course not in missing_courses: 52 54 missing_courses += student.course, 53 logger.info('missing course %s' % student.course)55 #logger.info('missing course %s' % student.course) 54 56 continue 55 57 entry_mode = student.entry_mode 56 study_mode = certificate.get('study_mode','xxx') 57 if entry_mode != study_mode: 58 study_mode = certificate.get('study_mode','xxx') 59 if entry_mode != study_mode: 58 60 w_count = wrong_modes.get((entry_mode,study_mode),0) 59 61 if w_count == 0: … … 67 69 for k,v in wrong_modes.items(): 68 70 logger.info('wrong mode %s counted %d' % (k,v)) 69 logger.info('missing courses %s ' % (', '.join(missing_courses)))71 logger.info('missing courses %s (%d counted)' % (', '.join(missing_courses),len(students_with_missing_courses))) 70 72 logger.info('found %d wrong of %d' % (len(wrong),count))
Note: See TracChangeset for help on using the changeset viewer.