aboutsummaryrefslogtreecommitdiff
path: root/GradeBook.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'GradeBook.tcl')
-rwxr-xr-xGradeBook.tcl15
1 files changed, 2 insertions, 13 deletions
diff --git a/GradeBook.tcl b/GradeBook.tcl
index 3943d4f..f2f130b 100755
--- a/GradeBook.tcl
+++ b/GradeBook.tcl
@@ -642,19 +642,8 @@ proc AddColumnNonWeb { columnname2add column_category maxpointpossible } {
dbg "the following error happen: $errStat" 3
}
- set sql_str [concat UPDATE GradesTable SET \"$columnname2add\"=\'$column_category\' where UserName=\"_Col_Category_\"]
- set err [catch {db eval $sql_str } errStat]
- if { $err } {
- htmlErrorMsg $errStat
- dbg "the following error happen: $errStat" 3
- }
- set sql_str [concat UPDATE GradesTable SET \"$columnname2add\"=\'$maxpointpossible\' where UserName=\"_Max_Points_\"]
- set err [catch {db eval $sql_str } errStat]
- if { $err } {
- htmlErrorMsg $errStat
- dbg "the following error happen: $errStat" 3
- }
-
+ UpdateColValue4UserNameNonWeb $columnname2add _Col_Category_ $column_category
+ UpdateColValue4UserNameNonWeb $columnname2add _Max_Points_ $maxpointpossible
} else {
htmlErrorMsg "empty column names are not permitted"
}