- Timestamp:
- 11 Feb 2007, 22:35:16 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_utilities/fixLevelFromResults.py
r1407 r1408 48 48 erg = context.results_import(matric_no=sbrain.matric_no) 49 49 if erg and erg[0].Level: 50 lc = "N"50 #lc = "N" 51 51 level_res = erg[0].Level 52 52 everdict = erg[0].Verdict 53 53 level_cc = context.getLevelFromResultsCosCode(erg) 54 if level_cc == 0:55 lc = "-"56 if "%d00" % level_cc != level_res:57 lc = "!"54 #if level_cc == 0: 55 #lc = "-" 56 #if "%d00" % level_cc != level_res: 57 lc = 100*level_cc - int(level_res) 58 58 verdict,elegible = context.getVerdict(everdict) 59 59 if elegible: 60 lc = "S"60 #lc = "S" 61 61 level = "%d00" % (level_cc + 1) 62 62 #context.students_catalog.modifyRecord(id = sbrain.id, … … 81 81 82 82 #rwrite(ec +"--"+ sbrain.id +"--"+ sbrain.matric_no +"--"+ old_level +"--"+ level +"<br />") 83 s = '"%s", "%s","%s","%s","%s","%s","%s","%s"' % (lc,ec,83 s = '"%s", "%s","%s","%s","%s","%s","%s","%s"' % (str(lc),ec, 84 84 sbrain.id, 85 85 sbrain.matric_no,
Note: See TracChangeset for help on using the changeset viewer.