Changeset 2965
- Timestamp:
- 21 Dec 2007, 20:12:34 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/uniben/waeup_custom/getStudyLevelInfo.py
r2945 r2965 89 89 info['total_credits'] = total_credits 90 90 max_credits = 50 91 if context.getId() == student.end_level: 92 max_credits = 51 91 try: 92 if int(context.getId()) >= int(student.end_level): 93 max_credits = 51 94 except: 95 logger.info("%s has strange level id %s" % (student_id,level_id)) 93 96 info['max_credits'] = max_credits 94 97 info['credits_exceeded'] = total_credits > max_credits
Note: See TracChangeset for help on using the changeset viewer.