aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2018-05-10 22:25:02 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2018-05-10 22:25:02 -0400
commit60dc2f0475ac932d72a572c039da1078bd568b6c (patch)
tree6950a2a4c271ca65682c0ee7ea90f788a8d8a1a3
parentb4bd0ea48da3db6937b91b14dd894022dc4e7e1e (diff)
downloadGradeBook-60dc2f0475ac932d72a572c039da1078bd568b6c.tar.gz
GradeBook-60dc2f0475ac932d72a572c039da1078bd568b6c.zip
weighted column maximum=1 is hardcoded, instead of sum of the points
-rwxr-xr-xGradeBook_lib.tcl4
1 files changed, 3 insertions, 1 deletions
diff --git a/GradeBook_lib.tcl b/GradeBook_lib.tcl
index 129a0ea..b4035c3 100755
--- a/GradeBook_lib.tcl
+++ b/GradeBook_lib.tcl
@@ -455,7 +455,9 @@ proc calculteWeightedTotals { } {
set flag_delete_CategoryWeightedTolal true
}
if { [doesColumnExists $CategoryWeightedTolalName GradesTable] } {
- UpdateColValue4UserNameNonWeb $CategoryWeightedTolalName _Max_Points_ $max_points($category)
+ # weighted category always normilized to 1
+ UpdateColValue4UserNameNonWeb $CategoryWeightedTolalName _Max_Points_ 1
+ #UpdateColValue4UserNameNonWeb $CategoryWeightedTolalName _Max_Points_ $max_points($category)
# calculated weighted sum for each student in this category
foreach student $students_list {