Changeset 5203


Ignore:
Timestamp:
23 May 2010, 04:29:20 (15 years ago)
Author:
Henrik Bettermann
Message:

fix session_id in fill_session_in_course_results.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_utilities/fill_session_in_course_results.py

    r5144 r5203  
    5656        #set_trace()
    5757        session_id = level_doc.session
     58        if len(session_id) == 2:
     59            pass
     60        elif len(session_id) == 9:
     61            session_id = session_id[2:4]
     62        if len(session_id) != 2:
     63            logger.info("invalid session %s in level %s for student %s" %
     64                        (session_id,brain.level_id,brain.student_id))       
    5865        data['session_id'] = session_id
    5966        course_results.modifyRecord(**data)
Note: See TracChangeset for help on using the changeset viewer.