- Timestamp:
- 26 Mar 2007, 17:51:30 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/getStudyLevelInfo.py
r1586 r1641 40 40 return 0.0 41 41 42 def cmp_semester(a,b): 43 if a['semester'] == b['semester']: 42 def cmp_semester_id(a,b): 43 s1 = "%(semester)s%(id)s" % a 44 s2 = "%(semester)s%(id)s" % b 45 if s1 == s2: 44 46 return 0 45 if a['semester'] > b['semester']:47 if s1 > s2: 46 48 return 1 47 49 return -1 … … 104 106 normal.append(d) 105 107 info['credits_total'] = credits_total 106 carry_overs.sort(cmp_semester )108 carry_overs.sort(cmp_semester_id) 107 109 info['carry_overs'] = carry_overs 108 normal.sort(cmp_semester )110 normal.sort(cmp_semester_id) 109 111 info['normal'] = normal 110 112
Note: See TracChangeset for help on using the changeset viewer.