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_accommodation/getAccommodationInfo.py

    r3863 r3960  
    7777              )
    7878
    79 new = student_record.entry_session == session[0]
    80 arrived = student_record.session == session[0]
     79try:
     80    new = int(student_record.entry_session) == int(session[0])
     81except:   
     82    logger.info('%s has invalid entry_session %s' % (student_id,student_record.entry_session))
     83try:
     84    arrived = int(student_record.session) == int(session[0])
     85except:   
     86    logger.info('%s has invalid session %s' % (student_id,student_record.session))   
    8187
    8288level = None
Note: See TracChangeset for help on using the changeset viewer.