Changeset 3902 for WAeUP_SRP/trunk/skins/waeup_ois/getStudyLevelInfo.py
- Timestamp:
- 3 Feb 2009, 08:12:10 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_ois/getStudyLevelInfo.py
r3820 r3902 97 97 98 98 complete1 = 0 99 score_calc_average_1 = 0 99 100 for r in normal1: 100 if r['grade'] and r['atl']: 101 complete1 += 1 101 if r['grade'] and r['atl']: 102 complete1 += 1 103 score_calc_average_1 += r['score_calc'] 102 104 if len(normal1) == complete1: 103 105 complete1 = True 104 106 else: 105 107 complete1 = False 108 if len(normal1): 109 score_calc_average_1 /= len(normal1) 106 110 info['complete1'] = complete1 111 info['score_calc_average_1'] = score_calc_average_1 107 112 108 113 complete2 = 0 114 score_calc_average_2 = 0 109 115 for r in normal1: 110 if r['grade'] and r['atl']: 111 complete2 += 1 116 if r['grade'] and r['atl']: 117 score_calc_average_2 += r['score_calc'] 118 complete2 += 1 112 119 if len(normal2) == complete2: 113 120 complete2 = True 114 121 else: 115 122 complete2 = False 123 if len(normal2): 124 score_calc_average_2 /= len(normal2) 116 125 info['complete2'] = complete2 126 info['score_calc_average_2'] = score_calc_average_2 117 127 118 128 complete3 = 0 129 score_calc_average_3 = 0 119 130 for r in normal1: 120 if r['grade'] and r['atl']: 121 complete3 += 1 131 if r['grade'] and r['atl']: 132 complete3 += 1 133 score_calc_average_3 += r['score_calc'] 122 134 if len(normal3) == complete3: 123 135 complete3 = True 124 136 else: 125 137 complete3 = False 138 if len(normal3): 139 score_calc_average_3 /= len(normal3) 126 140 info['complete3'] = complete3 141 info['score_calc_average_3'] = score_calc_average_3 127 142 128 143
Note: See TracChangeset for help on using the changeset viewer.