Changeset 15055 for main/waeup.kofa/trunk/src/waeup/kofa/students/export.py
- Timestamp:
- 18 Jun 2018, 05:20:14 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/export.py
r15051 r15055 136 136 p_end = kw.get('payments_end') 137 137 paycat = kw.get('paycat') 138 paysession = kw.get('paysession') 138 139 for student in students: 139 140 for payment in student.get('payments', {}).values(): … … 152 153 continue 153 154 if paycat not in ('all', None) and payment.p_category != paycat: 155 continue 156 if paysession not in ('all', None) and payment.p_session != paysession: 154 157 continue 155 158 payments.append(payment) … … 206 209 del kw['payments_end'] 207 210 del kw['paycat'] 211 del kw['paysession'] 208 212 except KeyError: 209 213 pass 210 # Coursetickets can be filtered level and session.214 # Coursetickets can be filtered by level and session. 211 215 # These parameters are not keys of the catalog and must thus be 212 216 # removed from kw.
Note: See TracChangeset for help on using the changeset viewer.