Changeset 3336 for WAeUP_SRP


Ignore:
Timestamp:
14 Mar 2008, 22:53:14 (17 years ago)
Author:
Henrik Bettermann
Message:

don't check for duplicate identifier

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPImport.py

    r3330 r3336  
    351351        student_record = None
    352352        id_count = 0
    353         for id_key in ('id','matric_no'):
     353        for id_key in ('matric_no','id'):
    354354            id_field = mapping.get(id_key,'')
    355355            if id_field:
     
    358358                search_field = id_field
    359359        while True:
    360             if id_count > 1:
    361                 msg = "both id and matric_no are provided"
    362                 break
    363             elif id_count == 0:
     360            #if id_count > 1:
     361            #    msg = "both id and matric_no are provided"
     362            #    break
     363            if id_count == 0:
    364364                msg = "neither id nor matric_no provided"
    365365                break
     
    441441            if msg:
    442442                break
    443             student_id = student_record.id   
     443            student_id = student_record.id
    444444            level_id = mapping.get('level_id','')
    445445            code = mapping.get('code','')
Note: See TracChangeset for help on using the changeset viewer.