Ignore:
Timestamp:
12 Feb 2009, 06:03:29 (16 years ago)
Author:
Henrik Bettermann
Message:

allow '8' and '08' as session strings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_futminna/getAccommodationInfo.py

    r3843 r3960  
    6969    return info   
    7070
    71 if review_state in ('cleared_and_validated','school_fee_paid','courses_registered', 'courses_validated',) and student_record.session == session[0]:
     71try:
     72    arrived = int(student_record.session) == int(session[0])
     73except:
     74    arrived = False
     75    logger.info('%s has invalid session %s' % (student_id,student_record.session))
     76
     77if review_state in ('cleared_and_validated','school_fee_paid','courses_registered', 'courses_validated',) and arrived:
    7278    info['booking_allowed'] = True
    7379    info['online_payment'] = True
Note: See TracChangeset for help on using the changeset viewer.