--- loncom/interface/loncoursedata.pm 2003/09/29 19:48:17 1.91 +++ loncom/interface/loncoursedata.pm 2003/09/30 15:34:34 1.93 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: loncoursedata.pm,v 1.91 2003/09/29 19:48:17 matthew Exp $ +# $Id: loncoursedata.pm,v 1.93 2003/09/30 15:34:34 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -460,7 +460,7 @@ The response table holds data (documente associated with a particular response id which is stored when a student attempts a problem. The following are the columns of the table, in order: 'symb_id','part_id','response_id','student_id','transaction','tries', -'awarddetail', 'awarded','response_specific' (data particular to the response +'awarddetail', 'response_specific' (data particular to the response type), 'response_specific_value', and 'submission (the text of the students submission). The primary key is based on the first five columns listed above. @@ -716,8 +716,6 @@ sub init_dbs { restrictions => 'NOT NULL' }, { name => 'awarddetail', type => 'TINYTEXT' }, - { name => 'awarded', - type => 'TINYTEXT' }, # { name => 'message', # type => 'CHAR' }, { name => 'response_specific', @@ -1189,7 +1187,6 @@ sub update_full_student_data { if (defined($resp_id) && $field =~ /^(tries| awarddetail| - awarded| submission| submissiongrading| molecule)$/x) { @@ -1256,7 +1253,6 @@ sub update_full_student_data { $transaction, $data->{'tries'}, $data->{'awarddetail'}, - $data->{'awarded'}, $data->{'response_specific'}, $data->{'response_specific_value'}, $data->{'submission'})."'),"; @@ -1868,7 +1864,7 @@ sub get_problem_statistics { $stats_table); my ($Solved) = &execute_SQL_request($dbh,'SELECT COUNT(tries) FROM '. $stats_table. - " WHERE solved='correct_by_student'"); + " WHERE solved='correct_by_student' OR solved='correct_by_scantron'"); my ($solved) = &execute_SQL_request($dbh,'SELECT COUNT(tries) FROM '. $stats_table. " WHERE solved='correct_by_override'");