Changeset 15043 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 8 Jun 2018, 11:08:42 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/export.py
r15042 r15043 133 133 date_format = '%d/%m/%Y' 134 134 payments = [] 135 p ayments_start = kw.get('payments_start')136 p ayments_end = kw.get('payments_end')135 p_start = kw.get('payments_start') 136 p_end = kw.get('payments_end') 137 137 paycat = kw.get('paycat') 138 138 for student in students: 139 139 for payment in student.get('payments', {}).values(): 140 if p ayments_start and payments_end:140 if p_start and p_end: 141 141 if not payment.payment_date: 142 142 continue 143 payments_start = datetime.strptime(p ayments_start, date_format)144 payments_end = datetime.strptime(p ayments_end, date_format)143 payments_start = datetime.strptime(p_start, date_format) 144 payments_end = datetime.strptime(p_end, date_format) 145 145 tz = getUtility(IKofaUtils).tzinfo 146 146 payments_start = tz.localize(payments_start)
Note: See TracChangeset for help on using the changeset viewer.