aboutsummaryrefslogtreecommitdiff
path: root/GradeBook.tcl
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2011-01-10 02:00:59 -0500
committerEugeniy Mikhailov <evgmik@gmail.com>2011-01-10 02:00:59 -0500
commit297ea8435e15d772aa1dbf22e07b3230b665f5e2 (patch)
tree4878c74125bdccf42fc4ed08f6ab91179cca5ade /GradeBook.tcl
parentd19c3354bbfd3550c2882a95d663362b47cc82ff (diff)
downloadGradeBook-297ea8435e15d772aa1dbf22e07b3230b665f5e2.tar.gz
GradeBook-297ea8435e15d772aa1dbf22e07b3230b665f5e2.zip
special table rows _Max_Points_ and _Col_Category_ are excluded from grade change
Ignore-this: ac5be1b0a868147dc5da4d3926812946 darcs-hash:20110110070059-067c0-e24d15813e4b99f50e3cce8c33474141aee9905c.gz
Diffstat (limited to 'GradeBook.tcl')
-rwxr-xr-xGradeBook.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/GradeBook.tcl b/GradeBook.tcl
index fa09ef0..85aa716 100755
--- a/GradeBook.tcl
+++ b/GradeBook.tcl
@@ -328,7 +328,7 @@ proc ChangeGrades { permission_list user } {
set sql_column_list [join $column_list ","]
puts "<form name=\"input\" action=\"$script_name\" method=\"post\" />"
# output only selected columns
- set eval_str "SELECT $sql_column_list FROM GradesTable ORDER BY LastName"
+ set eval_str "SELECT $sql_column_list FROM GradesTable WHERE UserName<>'_Col_Category_' AND UserName<>'_Max_Points_' ORDER BY LastName"
set show_header 1
set err [catch {
db eval $eval_str v {