Ignore:
Timestamp:
10 Mar 2007, 18:52:25 (18 years ago)
Author:
Henrik Bettermann
Message:

ticket 98

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/getRetStudentStatistics.py

    r1530 r1536  
    4242    dep['id'] = fid
    4343    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))
    4747
    4848    if total == 0:
    4949        continue
    5050
    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])
    5252    dep['returned'] = ret
    5353    sum += ret
Note: See TracChangeset for help on using the changeset viewer.