Index: /WAeUP_SRP/trunk/WAeUPImport.py
===================================================================
--- /WAeUP_SRP/trunk/WAeUPImport.py	(revision 5203)
+++ /WAeUP_SRP/trunk/WAeUPImport.py	(revision 5204)
@@ -528,4 +528,9 @@
                 msg =  "no course result with key %(key)s" % vars()
                 break
+            # don't overwrite session id but check if session ids match
+            # (helps to avoid overwriting of course results)
+            session_in_course_result = self.course_results.getRecordByKey(key)['session_id']
+            if not session_in_course_result == mapping['session_id']:
+                msg =  "import session_id %s does not match session_id %s in course result" % (mapping['session_id'],session_in_course_result)
             self.course_results.modifyRecord(**mapping)
             break
