From f87a9169f75479a8056a3f3ea9157cc7c77e65c0 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Wed, 18 May 2022 16:08:09 -0400 Subject: skip grade update for non existing user --- importGrades2gradebook.tcl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/importGrades2gradebook.tcl b/importGrades2gradebook.tcl index 5995686..6be7abb 100755 --- a/importGrades2gradebook.tcl +++ b/importGrades2gradebook.tcl @@ -338,6 +338,10 @@ proc gradescopeUsername2local { uname } { proc updateGrade { col locUname grade } { + if { ! [isThereUserNameInTheGradesTable $locUname] } { + dbg [list "GradesDB does not have user" $locUname] + return + } set oldGrade [SelectColValue4User $col $locUname ] #puts "$locUname: $col oldGrade \{$oldGrade\} --> \{$grade\}" if { $oldGrade == $grade } { return } -- cgit v1.2.3