aboutsummaryrefslogtreecommitdiff
path: root/gradescope2gradebook.tcl
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-03-10 22:27:54 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-03-10 22:27:54 -0500
commit0d594e035d1c426ad9618252ade48fad592a1c3f (patch)
tree701cbb648831046f16038d7ff1a082120b4494be /gradescope2gradebook.tcl
parentbc7a3a39d50be653d1d588f594faf87dea354000 (diff)
downloadGradeBook-0d594e035d1c426ad9618252ade48fad592a1c3f.tar.gz
GradeBook-0d594e035d1c426ad9618252ade48fad592a1c3f.zip
adding non existing students
Diffstat (limited to 'gradescope2gradebook.tcl')
-rwxr-xr-xgradescope2gradebook.tcl15
1 files changed, 15 insertions, 0 deletions
diff --git a/gradescope2gradebook.tcl b/gradescope2gradebook.tcl
index 217beec..beeacbb 100755
--- a/gradescope2gradebook.tcl
+++ b/gradescope2gradebook.tcl
@@ -97,6 +97,21 @@ set infoColumsMarkers {{ - Lateness \(H:M:S\)} { - Max Points} { - Submission Ti
set skipCreationCol [concat $commonInfoCol $infoColumsMarkers]
+## adding students if they do not exist
+set fname [list First Name]
+set lname [list Last Name]
+set idnum [list SID]
+set eval_str [concat SELECT * FROM 'export_table']
+set err [catch {
+ gdb eval $eval_str v {
+ #AddUserNonWeb $fname $lname $email student $id $sect
+ AddUserNonWeb $v($fname) $v($lname) $v(Email) student $v($idnum) 1
+ #addStudent db $v($idnum) $v(Contact)
+ }
+ } errStat ]
+iferror $err $errStat
+
+
# add columns with reports to gradebook db
foreach col [getColListFromAnyTable gdb export_table] {
if { [isInList $col $skipCreationCol] } {