Changeset 5206


Ignore:
Timestamp:
26 May 2010, 04:27:02 (15 years ago)
Author:
Henrik Bettermann
Message:

Notreparatur

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPImport.py

    r5204 r5206  
    531531            # (helps to avoid overwriting of course results)
    532532            session_in_course_result = self.course_results.getRecordByKey(key)['session_id']
    533             if not session_in_course_result == mapping['session_id']:
     533            if mapping.get('session_id','') and not session_in_course_result == mapping.get('session_id',''):
    534534                msg =  "import session_id %s does not match session_id %s in course result" % (mapping['session_id'],session_in_course_result)
    535535            self.course_results.modifyRecord(**mapping)
Note: See TracChangeset for help on using the changeset viewer.