Ignore:
Timestamp:
2 Jun 2012, 11:25:33 (13 years ago)
Author:
Henrik Bettermann
Message:

Display numper of submissions per faculty.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/applicants
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantcontainerstatistics.pt

    r8591 r8601  
    2121      <tr>
    2222        <th i18n:translate="" width="40%">Faculty</th>
    23         <th>&nbsp;</th>
     23        <th i18n:translate="">Number of Submissions</th>
    2424      </tr>
    2525    </thead>
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/container.py

    r8591 r8601  
    104104        fac_stats = dict([(i,0) for i in faculty_keys])
    105105        for key in self.keys():
    106             state_stats[self[key].state] += 1
     106            state = self[key].state
     107            state_stats[state] += 1
    107108            cert = getattr(self[key],'course1',None)
    108             if  cert is not None:
     109            if  cert is not None and state == SUBMITTED:
    109110                faculty = cert.__parent__.__parent__.__parent__
    110111                fac_stats[faculty.__name__] += 1
Note: See TracChangeset for help on using the changeset viewer.