--- loncom/homework/grades.pm 2001/05/01 17:30:18 1.7
+++ loncom/homework/grades.pm 2001/06/08 19:44:48 1.8
@@ -1,5 +1,6 @@
# The LON-CAPA Grading handler
# 2/9,2/13 Guy Albertelli
+# 6/8 Gerd Kortemeyer
package Apache::grades;
use strict;
@@ -83,8 +84,7 @@ sub viewstudentgrade {
my ($stuname,$domain) = split(/:/,$student);
- my %record=&Apache::lonnet::restore($symb,$courseid,$domain,$stuname,
- &Apache::lonnet::homeserver($stuname,$domain));
+ my %record=&Apache::lonnet::restore($symb,$courseid,$domain,$stuname);
$result.="
$stuname | $domain | \n";
foreach my $part (@parts) {
@@ -125,8 +125,8 @@ sub setstudentgrade {
my ($stuname,$domain) = split(/:/,$student);
- my %record=&Apache::lonnet::restore($symb,$courseid,$domain,$stuname,
- &Apache::lonnet::homeserver($stuname,$domain));
+ my %record=&Apache::lonnet::restore($symb,$courseid,$domain,$stuname);
+
my %newrecord;
foreach my $part (@parts) {
@@ -162,8 +162,8 @@ sub setstudentgrade {
}
if ( scalar(keys(%newrecord)) > 0 ) {
$newrecord{"resource.regrader"}="$ENV{'user.name'}:$ENV{'user.domain'}";
- &Apache::lonnet::cstore(\%newrecord,$symb,$courseid,$domain,$stuname,
- &Apache::lonnet::homeserver($stuname,$domain));
+ &Apache::lonnet::cstore(\%newrecord,$symb,$courseid,$domain,$stuname);
+
$result.="Stored away ".scalar(keys(%newrecord))." elements.
\n";
}
return $result;