[LON-CAPA-cvs] cvs: loncom /interface/statistics lonstathelpers.pm
raeburn
raeburn at source.lon-capa.org
Wed Jul 12 11:09:41 EDT 2023
raeburn Wed Jul 12 15:09:41 2023 EDT
Modified files:
/loncom/interface/statistics lonstathelpers.pm
Log:
- Only need to check if resource is a tool when $include_tools is true.
Index: loncom/interface/statistics/lonstathelpers.pm
diff -u loncom/interface/statistics/lonstathelpers.pm:1.80 loncom/interface/statistics/lonstathelpers.pm:1.81
--- loncom/interface/statistics/lonstathelpers.pm:1.80 Thu Oct 8 12:02:07 2020
+++ loncom/interface/statistics/lonstathelpers.pm Wed Jul 12 15:09:41 2023
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: lonstathelpers.pm,v 1.80 2020/10/08 12:02:07 raeburn Exp $
+# $Id: lonstathelpers.pm,v 1.81 2023/07/12 15:09:41 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -198,7 +198,7 @@
my %partsseen;
foreach my $part (@{$res->parts}) {
my (@response_ids, at response_types);
- if ($res->is_tool) {
+ if (($include_tools) && ($res->is_tool)) {
@response_ids = ();
@response_types = ('tool');
} else {
More information about the LON-CAPA-cvs
mailing list