Changeset 3368
- Timestamp:
- 21 Mar 2008, 17:50:50 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_utilities/ti_507_resolve.py
r3365 r3368 47 47 for student in students: 48 48 count += 1 49 if student. entry_mode and student.course:49 if student.mode and student.course: 50 50 certificate = certificates.get(student.course,None) 51 51 if certificate is None: … … 55 55 #logger.info('missing course %s' % student.course) 56 56 continue 57 entry_mode = student.entry_mode57 current_mode = student.mode 58 58 study_mode = certificate.get('study_mode','xxx') 59 if entry_mode != study_mode:60 w_count = wrong_modes.get(( entry_mode,study_mode),0)59 if current_mode != study_mode: 60 w_count = wrong_modes.get((current_mode,study_mode),0) 61 61 if w_count == 0: 62 logger.info('%s != %s' % (student. entry_mode,62 logger.info('%s != %s' % (student.mode, 63 63 study_mode)) 64 64 w_count += 1 65 wrong_modes[( entry_mode,study_mode)] = w_count65 wrong_modes[(current_mode,study_mode)] = w_count 66 66 wrong += student.id, 67 67 if wrong and not (len(wrong) % commit_after):
Note: See TracChangeset for help on using the changeset viewer.