[LON-CAPA-cvs] cvs: loncom /interface lonfeedback.pm
raeburn
raeburn at source.lon-capa.org
Sun Jun 17 11:30:37 EDT 2012
raeburn Sun Jun 17 15:30:37 2012 EDT
Modified files:
/loncom/interface lonfeedback.pm
Log:
- Include items with no votes when computing mean and std. dev.
Index: loncom/interface/lonfeedback.pm
diff -u loncom/interface/lonfeedback.pm:1.356 loncom/interface/lonfeedback.pm:1.357
--- loncom/interface/lonfeedback.pm:1.356 Fri Jun 8 00:48:18 2012
+++ loncom/interface/lonfeedback.pm Sun Jun 17 15:30:37 2012
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Feedback
#
-# $Id: lonfeedback.pm,v 1.356 2012/06/08 00:48:18 raeburn Exp $
+# $Id: lonfeedback.pm,v 1.357 2012/06/17 15:30:37 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1063,8 +1063,8 @@
next if ($contrib{$idx.':deleted'});
next if ($contrib{$idx.':hidden'});
unless ((($hiddens{$idx}) && (!$seehidden)) || ($deletions{$idx}) || (!$contrib{$idx.':message'})) {
+ push(@theselikes,$likes{$symb.':'.$idx.':likes'});
if ($likes{$symb.':'.$idx.':likes'} ne '') {
- push(@theselikes,$likes{$symb.':'.$idx.':likes'});
if (ref($likes{$symb.':'.$idx.':likers'}) eq 'HASH') {
if (exists($likes{$symb.':'.$idx.':likers'}{$thisuser})) {
$userlikes{$idx} = 1;
More information about the LON-CAPA-cvs
mailing list