Changeset 3650 for WAeUP_SRP/base/skins/waeup_student
- Timestamp:
- 29 Aug 2008, 06:17:34 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_student/create_level.py
r3362 r3650 81 81 academics_level = 100 * (int(current_level)/100) 82 82 else: 83 academics_level = '000' 83 academics_level = '000' 84 84 query = Eq("path","%s/%s" % (path,academics_level)) &\ 85 85 Eq('portal_type','CertificateCourse') … … 155 155 continue 156 156 course_cat_entry = c_res[0] 157 passmark = getattr(course_cat_entry,'passmark',None)157 #passmark = getattr(course_cat_entry,'passmark',None) 158 158 try: 159 159 score = int(result.score) 160 160 except: 161 # logger.info('%s, course %s has invalid score %s"' % (student.id,161 #logger.info('%s, course_result %s has invalid score"' % (student.id, 162 162 # course_id, 163 # result. Score))163 # result.score)) 164 164 continue 165 try: 166 passmark = int(c_res[0].passmark) 167 except: 168 logger.info('%s, course %s has invalid passmark %s"' % (student.id, 169 course_id, 170 c_res[0].passmark)) 171 continue 165 172 if int(c_res[0].passmark) <= score: 166 173 continue … … 181 188 current_level, 182 189 ",".join(existing_uids))) 183 190 184 191 logger.info('%s finished to create level %s' % (student.id,current_level)) 185 192
Note: See TracChangeset for help on using the changeset viewer.