Changeset 8939
- Timestamp:
- 8 Jul 2012, 05:17:11 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/tools/fix_import_file.py
r8938 r8939 97 97 'scd_sit_results': 'result', 98 98 'alr_results': 'result', 99 'email': 'email', 100 'fst_sit_type': 'sittype', 101 'scd_sit_type': 'sittype', 99 102 } 100 103 … … 232 235 if value == 'akwa_ibom_uru_offong_oruko': 233 236 return 'akwa_ibom_urue-offong-oruko' 237 if value == 'edo_ohionmwon': 238 return 'edo_orhionmwon' 239 240 if value == 'nassarawa_nassarawa': 241 return 'nassarawa_nassawara' 242 243 if value == 'kogi_mopa-muro-mopi': 244 return 'kogi_mopa-muro' 245 246 if value == 'delta_osimili-north': 247 return 'delta_oshielli-north' 248 249 if value == 'delta_osimili': 250 return 'delta_oshimili' 251 252 if value == 'delta_osimili-south': 253 return 'delta_oshimili-south' 234 254 try: 235 255 value = value.replace("'","") … … 372 392 if value == "nigeria": 373 393 return "NG" 374 return value 394 if value == "niger": 395 return "NE" 396 return value 397 398 @classmethod 399 def sittype(self, value): 400 if value == "nabtec": 401 return "nabteb" 402 return value 403 404 @classmethod 405 def email(self, value): 406 return value.strip() 375 407 376 408 @classmethod … … 414 446 header = convert_fieldnames(reader.fieldnames) 415 447 writer.writerow(header) 448 if row.get('reg_state') == 'student_created': 449 continue 416 450 for key, value in row.items(): 417 451 if not key in OPTIONS.keys():
Note: See TracChangeset for help on using the changeset viewer.