Index: openacs-4/packages/evaluation-portlet/lib/evaluations-chunk-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation-portlet/lib/evaluations-chunk-postgresql.xql,v diff -u -r1.6.2.1 -r1.6.2.2 --- openacs-4/packages/evaluation-portlet/lib/evaluations-chunk-postgresql.xql 31 May 2005 23:13:20 -0000 1.6.2.1 +++ openacs-4/packages/evaluation-portlet/lib/evaluations-chunk-postgresql.xql 16 Jun 2005 09:23:30 -0000 1.6.2.2 @@ -8,7 +8,7 @@ select et.task_name, round(et.weight,2) as task_weight, - et.task_id, (select perfect_score from evaluation_tasks where task_id=et.task_id) as perfect_score, online_p + et.task_id, coalesce(perfect_score,0) as perfect_score, online_p from evaluation_tasksi et, cr_items cri where grade_item_id = :grade_item_id and cri.live_revision = et.task_id @@ -40,7 +40,7 @@ et.online_p, et.due_date, et.late_submit_p, - et.task_id, (select perfect_score from evaluation_tasks where task_id=et.task_id) as perfect_score + et.task_id, coalesce(perfect_score,0) as perfect_score from evaluation_grades eg, evaluation_tasksi et, cr_items cri Index: openacs-4/packages/evaluation-portlet/lib/evaluations-chunk.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation-portlet/lib/evaluations-chunk.tcl,v diff -u -r1.12.2.1 -r1.12.2.2 --- openacs-4/packages/evaluation-portlet/lib/evaluations-chunk.tcl 31 May 2005 23:13:21 -0000 1.12.2.1 +++ openacs-4/packages/evaluation-portlet/lib/evaluations-chunk.tcl 16 Jun 2005 09:23:30 -0000 1.12.2.2 @@ -174,6 +174,7 @@ } else { set task_url [export_vars -base "${base_url}admin/evaluations/student-list" { grade_id task_id return_url }] } + ns_log notice "fer fiene coon --> $perfect_score <--- \n" set category_weight [expr $category_weight + $task_weight] set grade_url [export_vars -base "${base_url}admin/evaluations/student-list" { grade_id task_id return_url }] set max_weight [format %0.2f [expr $max_weight + $task_weight]]