diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-05-12 12:15:03 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-05-12 12:15:03 -0400 |
commit | 1c74a68d4137d30472a6cf00dd92bd259bbc7206 (patch) | |
tree | c1f2d151a91c2efba2097218a93c7561d2cce902 | |
parent | 59e52593bca474380a76cdd76b27eb22d6ae30c3 (diff) | |
download | GradeBook-1c74a68d4137d30472a6cf00dd92bd259bbc7206.tar.gz GradeBook-1c74a68d4137d30472a6cf00dd92bd259bbc7206.zip |
better name for DB related commnads
-rwxr-xr-x | blackboard2gradebook.tcl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/blackboard2gradebook.tcl b/blackboard2gradebook.tcl index 4a8adff..9ac1be6 100755 --- a/blackboard2gradebook.tcl +++ b/blackboard2gradebook.tcl @@ -114,8 +114,8 @@ proc trimColName { col } { } set wasDryRunAnounced false -proc veval {script} { - # verbose eval +proc dbRequest {script} { + # verbose evaluation of dbRequest with dry run capability global dryrun global wasDryRunAnounced set cmd "" @@ -152,7 +152,7 @@ proc addStudentsFromDB { db } { set err [catch { $db eval $eval_str v { set email $v(Username)@email.wm.edu - veval [list AddUserNonWeb $v($fname) $v($lname) $email student $id $section] + dbRequest [list AddUserNonWeb $v($fname) $v($lname) $email student $id $section] } } errStat ] iferror $err $errStat @@ -175,7 +175,7 @@ proc updateGrade { col locUname grade } { if { $oldGrade != $grade } { #puts "$locUname: $col oldGrade \{$oldGrade\} --> \{$grade\}" puts [list $locUname $col $oldGrade "-->" $grade] - veval [list UpdateColValue4UserNameNonWeb $col $locUname $grade] + dbRequest [list UpdateColValue4UserNameNonWeb $col $locUname $grade] } } @@ -206,7 +206,7 @@ foreach col [getColListFromAnyTable bdb export_table] { #continue #} if { ![doesColumnExists $shortCol GradesTable] } { - veval [list AddColumnNonWeb $shortCol $category $maxScore] + dbRequest [list AddColumnNonWeb $shortCol $category $maxScore] } foreach uname $username_list { set locUname [foreignUsername2local $uname] |