[LON-CAPA-cvs] cvs: loncom /homework grades.pm
raeburn
raeburn at source.lon-capa.org
Fri May 8 11:12:34 EDT 2020
raeburn Fri May 8 15:12:34 2020 EDT
Modified files:
/loncom/homework grades.pm
Log:
- coding style -- grep().
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.768 loncom/homework/grades.pm:1.769
--- loncom/homework/grades.pm:1.768 Fri May 8 14:56:53 2020
+++ loncom/homework/grades.pm Fri May 8 15:12:34 2020
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Grading handler
#
-# $Id: grades.pm,v 1.768 2020/05/08 14:56:53 raeburn Exp $
+# $Id: grades.pm,v 1.769 2020/05/08 15:12:34 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -5310,11 +5310,11 @@
}
my @matchKey;
if ($isTask) {
- @matchKey = sort(grep /^resource\.\d+\.\Q$partid\E\.award$/, at versionKeys);
+ @matchKey = sort(grep(/^resource\.\d+\.\Q$partid\E\.award$/, at versionKeys));
} elsif ($is_tool) {
- @matchKey = sort(grep /^resource\.\Q$partid\E\.awarded$/, at versionKeys);
+ @matchKey = sort(grep(/^resource\.\Q$partid\E\.awarded$/, at versionKeys));
} else {
- @matchKey = sort(grep /^resource\.\Q$partid\E\..*?\.submission$/, at versionKeys);
+ @matchKey = sort(grep(/^resource\.\Q$partid\E\..*?\.submission$/, at versionKeys));
}
# next if ($$record{"$version:resource.$partid.solved"} eq '');
my $display_part=&get_display_part($partid,$symb);
More information about the LON-CAPA-cvs
mailing list