Ignore:
Timestamp:
8 Jun 2018, 11:08:42 (7 years ago)
Author:
Henrik Bettermann
Message:

Fix traceback.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/export.py

    r15042 r15043  
    133133    date_format = '%d/%m/%Y'
    134134    payments = []
    135     payments_start = kw.get('payments_start')
    136     payments_end = kw.get('payments_end')
     135    p_start = kw.get('payments_start')
     136    p_end = kw.get('payments_end')
    137137    paycat = kw.get('paycat')
    138138    for student in students:
    139139        for payment in student.get('payments', {}).values():
    140             if payments_start and payments_end:
     140            if p_start and p_end:
    141141                if not payment.payment_date:
    142142                    continue
    143                 payments_start = datetime.strptime(payments_start, date_format)
    144                 payments_end = datetime.strptime(payments_end, date_format)
     143                payments_start = datetime.strptime(p_start, date_format)
     144                payments_end = datetime.strptime(p_end, date_format)
    145145                tz = getUtility(IKofaUtils).tzinfo
    146146                payments_start = tz.localize(payments_start)
Note: See TracChangeset for help on using the changeset viewer.