- Timestamp:
- 10 Mar 2007, 18:52:25 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/getRetStudentStatistics.py
r1530 r1536 42 42 dep['id'] = fid 43 43 fquery = Eq('faculty',fid) 44 fac_res = aq_students(fquery)45 fac_ids = [r.id for r in fac_res]46 total = float(len( fac_res))44 stud_res = aq_students(fquery) 45 stud_ids = [r.id for r in stud_res] 46 total = float(len(stud_res)) 47 47 48 48 if total == 0: 49 49 continue 50 50 51 ret = len([s for s in fac_ids if s in ret_ids])51 ret = len([s for s in stud_ids if s in ret_ids]) 52 52 dep['returned'] = ret 53 53 sum += ret
Note: See TracChangeset for help on using the changeset viewer.