Ignore:
Timestamp:
24 May 2010, 07:19:15 (14 years ago)
Author:
Henrik Bettermann
Message:

don't overwrite session id but check if session ids match

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPImport.py

    r5196 r5204  
    528528                msg =  "no course result with key %(key)s" % vars()
    529529                break
     530            # don't overwrite session id but check if session ids match
     531            # (helps to avoid overwriting of course results)
     532            session_in_course_result = self.course_results.getRecordByKey(key)['session_id']
     533            if not session_in_course_result == mapping['session_id']:
     534                msg =  "import session_id %s does not match session_id %s in course result" % (mapping['session_id'],session_in_course_result)
    530535            self.course_results.modifyRecord(**mapping)
    531536            break
Note: See TracChangeset for help on using the changeset viewer.