[LON-CAPA-cvs] cvs: loncom /homework grades.pm
www
lon-capa-cvs-allow@mail.lon-capa.org
Sun, 02 Sep 2007 02:10:32 -0000
www Sat Sep 1 22:10:32 2007 EDT
Modified files:
/loncom/homework grades.pm
Log:
Argh. And the reason that more than one student in the same class had the
same clicker is that the first student dropped and gave the clicker to the
next student who enrolled. Only go through the active classlist.
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.437 loncom/homework/grades.pm:1.438
--- loncom/homework/grades.pm:1.437 Sat Sep 1 21:59:57 2007
+++ loncom/homework/grades.pm Sat Sep 1 22:10:31 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Grading handler
#
-# $Id: grades.pm,v 1.437 2007/09/02 01:59:57 www Exp $
+# $Id: grades.pm,v 1.438 2007/09/02 02:10:31 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -7118,9 +7118,10 @@
# Set up a couple variables.
my $username_idx = &Apache::loncoursedata::CL_SNAME();
my $domain_idx = &Apache::loncoursedata::CL_SDOM();
+ my $status_idx = &Apache::loncoursedata::CL_STATUS();
foreach my $student (keys(%$classlist)) {
-
+ if ($classlist->{$student}->[$status_idx] ne 'Active') { next; }
my $username = $classlist->{$student}->[$username_idx];
my $domain = $classlist->{$student}->[$domain_idx];
my $clickers =