File:
[LON-CAPA] /
loncom /
interface /
spreadsheet /
default_assesscalc
Revision
1.8:
download - view:
text,
annotated -
select for diffs
Fri Feb 28 19:20:11 2014 UTC (10 years, 11 months ago) by
bisitz
Branches:
MAIN
CVS tags:
version_2_12_X,
version_2_11_X,
version_2_11_6_msu,
version_2_11_6,
version_2_11_5_msu,
version_2_11_5,
version_2_11_4_uiuc,
version_2_11_4_msu,
version_2_11_4,
version_2_11_3_uiuc,
version_2_11_3_msu,
version_2_11_3,
version_2_11_2_uiuc,
version_2_11_2_msu,
version_2_11_2_educog,
version_2_11_2,
version_2_11_1,
version_2_11_0_RC3,
version_2_11_0,
HEAD
Fix wording typos
<field col=A row=0>
if ("[stores_0_solved]" eq 'excused') {
'excused';
} elsif (M0) {
if(K0) {
if (K0 == M0) {
"correct";
} elsif (K0 < M0) {
K0.'/'.M0.' correct';
} else {
'correct';
}
} else {
"incorrect";
}
} else {
'';
}
</field>
<field col=B row=0>'Tries:'</field>
<field col=C row=0>
if (M0) {
[&EXPANDSUM(PART;stores_PART_tries)]/M0;
} else {
'';
}
</field>
<field col=D row=0>'Timestamp:'</field>
<field col=E row=0>[timestamp]</field>
<field col=F row=0>
if ([timestamp]>100000000) {
$tmp = localtime([timestamp]);
$tmp =~ s/\s/ /g;
$tmp;
} else {
'';
}
</field>
<field col=G row=0>'Due Date:'</field>
<field col=H row=0>[parameter_0_duedate]</field>
<field col=I row=0>
if ([parameter_0_duedate]>100000000) {
$tmp = localtime([parameter_0_duedate]);
$tmp =~ s/\s/ /g;
$tmp;
} else {
'';
}
</field>
<field col=J row=0>'Attempted Parts:'</field>
<field col=K row=0>
[&EXPANDSUM(PART;(stores_PART_solved !~ /^(\W?excused\W?|)$/ ?1:0))]
</field>
<field col=L row=0>'Solved Parts:'</field>
<field col=M row=0>[&EXPANDSUM(PART;(stores_PART_awarded?1:0))]</field>
<field col=W row=0>'Available Points:'</field>
<field col=X row=0>
if ("[stores_0_solved]" eq 'excused') {
0
} else {
[&EXPANDSUM(PART;parameter_PART_weight*(stores_PART_solved !~ /^\W?excused\W?$/ ? 1 : 0))];
}
</field>
<field col=Y row=0>'Awarded Points:'</field>
<field col=Z row=0>
if ("[stores_0_solved]" eq 'excused') {
0
} else {
[&EXPANDSUM(PART;parameter_PART_weight*stores_PART_awarded)]
}
</field>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>