[LON-CAPA-cvs] cvs: loncom /interface loncoursedata.pm
matthew
lon-capa-cvs@mail.lon-capa.org
Mon, 29 Sep 2003 19:48:17 -0000
matthew Mon Sep 29 15:48:17 2003 EDT
Modified files:
/loncom/interface loncoursedata.pm
Log:
Added count of response types to the part data stored in
&get_sequence_assessment_data().
Index: loncom/interface/loncoursedata.pm
diff -u loncom/interface/loncoursedata.pm:1.90 loncom/interface/loncoursedata.pm:1.91
--- loncom/interface/loncoursedata.pm:1.90 Fri Sep 26 15:23:14 2003
+++ loncom/interface/loncoursedata.pm Mon Sep 29 15:48:17 2003
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: loncoursedata.pm,v 1.90 2003/09/26 19:23:14 matthew Exp $
+# $Id: loncoursedata.pm,v 1.91 2003/09/29 19:48:17 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -197,6 +197,10 @@
my @Ids = $curRes->responseIds($part);
$partdata{$part}->{'ResponseTypes'}= \@Responses;
$partdata{$part}->{'ResponseIds'} = \@Ids;
+ # Count how many responses of each type there are in this part
+ foreach (@Responses) {
+ $partdata{$part}->{$_}++;
+ }
}
my $assessment = { title => $title,
src => $src,