version 1.801, 2024/12/09 22:22:57
|
version 1.802, 2024/12/10 04:55:03
|
Line 1726 sub passbacks_for_symb {
|
Line 1726 sub passbacks_for_symb {
|
} |
} |
|
|
sub process_passbacks { |
sub process_passbacks { |
my ($context,$symbs,$cdom,$cnum,$udom,$uname,$weights,$awardeds,$excuseds,$needpb, |
my ($context,$symbs,$cdom,$cnum,$udom,$uname,$usec,$weights,$awardeds,$excuseds,$needpb, |
$skip_passback,$pbsave,$pbids) = @_; |
$skip_passback,$pbsave,$pbids) = @_; |
if ((ref($needpb) eq 'HASH') && (ref($skip_passback) eq 'HASH') && (ref($pbsave) eq 'HASH')) { |
if ((ref($needpb) eq 'HASH') && (ref($skip_passback) eq 'HASH') && (ref($pbsave) eq 'HASH')) { |
my (%weight,%awarded,%excused); |
my (%weight,%awarded,%excused); |
Line 1827 sub process_passbacks {
|
Line 1827 sub process_passbacks {
|
'uname' => $uname, |
'uname' => $uname, |
'udom' => $udom, |
'udom' => $udom, |
'uhome' => $uhome, |
'uhome' => $uhome, |
|
'usec' => $usec, |
'pbid' => $pbid, |
'pbid' => $pbid, |
'pburl' => $pburl, |
'pburl' => $pburl, |
'pbtype' => $pb{'type'}, |
'pbtype' => $pb{'type'}, |
Line 4561 sub saveHandGrade {
|
Line 4562 sub saveHandGrade {
|
if (($sendupdate) && (!$submitter)) { |
if (($sendupdate) && (!$submitter)) { |
if ((ref($needpb) eq 'HASH') && |
if ((ref($needpb) eq 'HASH') && |
(keys(%{$needpb}))) { |
(keys(%{$needpb}))) { |
&process_passbacks('handgrade',[$symb],$cdom,$cnum,$domain,$stuname,\%weights, |
&process_passbacks('handgrade',[$symb],$cdom,$cnum,$domain,$stuname,$usec,\%weights, |
\%awardeds,\%excuseds,$needpb,$skip_passback,$pbsave); |
\%awardeds,\%excuseds,$needpb,$skip_passback,$pbsave); |
} |
} |
} |
} |
Line 5650 sub editgrades {
|
Line 5651 sub editgrades {
|
$updateCtr++; |
$updateCtr++; |
if (keys(%needpb)) { |
if (keys(%needpb)) { |
$weights{$symb} = \%weight; |
$weights{$symb} = \%weight; |
&process_passbacks('editgrades',[$symb],$cdom,$cnum,$udom,$uname,\%weights, |
&process_passbacks('editgrades',[$symb],$cdom,$cnum,$udom,$uname,$usec,\%weights, |
\%awardeds,\%excuseds,\%needpb,\%skip_passback,\%pbsave); |
\%awardeds,\%excuseds,\%needpb,\%skip_passback,\%pbsave); |
} |
} |
} else { |
} else { |
Line 6201 sub csvuploadassign {
|
Line 6202 sub csvuploadassign {
|
$awardeds{$symb}{$part} = $record{"resource.$part.awarded"}; |
$awardeds{$symb}{$part} = $record{"resource.$part.awarded"}; |
} |
} |
} |
} |
&process_passbacks('csvupload',[$symb],$cdom,$cnum,$domain,$username,\%weights, |
&process_passbacks('csvupload',[$symb],$cdom,$cnum,$domain,$username,$usec,\%weights, |
\%awardeds,\%excuseds,\%needpb,\%skip_passback,\%pbsave); |
\%awardeds,\%excuseds,\%needpb,\%skip_passback,\%pbsave); |
} |
} |
} else { |
} else { |
Line 7009 sub updateGradeByPage {
|
Line 7010 sub updateGradeByPage {
|
} |
} |
} |
} |
my @symbs = keys(%uniqsymbs); |
my @symbs = keys(%uniqsymbs); |
&process_passbacks('updatebypage',\@symbs,$cdom,$cnum,$udom,$uname,\%weights, |
&process_passbacks('updatebypage',\@symbs,$cdom,$cnum,$udom,$uname,$usec,\%weights, |
\%awardeds,\%excuseds,\%needpb,\%skip_passback,\%pbsave,\%pbids); |
\%awardeds,\%excuseds,\%needpb,\%skip_passback,\%pbsave,\%pbids); |
if (@Apache::grades::ltipassback) { |
if (@Apache::grades::ltipassback) { |
unless ($registered_cleanup) { |
unless ($registered_cleanup) { |