Index: openacs-4/packages/assessment/tcl/as-section-procs-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/tcl/as-section-procs-postgresql.xql,v diff -u -r1.1 -r1.2 --- openacs-4/packages/assessment/tcl/as-section-procs-postgresql.xql 7 Jan 2005 16:10:44 -0000 1.1 +++ openacs-4/packages/assessment/tcl/as-section-procs-postgresql.xql 18 Jan 2005 12:42:37 -0000 1.2 @@ -44,4 +44,22 @@ + + + + select asm.points as section_max_points + from as_assessment_section_map asm + where asm.assessment_id = :assessment_id + and asm.section_id = :section_id + and not exists (select 1 + from as_session_items i + left outer join as_item_data d on (d.as_item_id = i.as_item_id + and d.session_id = i.session_id) + where i.session_id = :session_id + and i.section_id = :section_id + and d.points is null) + + + +