scripts/fetch_name_gender.py
branchanoop
changeset 204 a190811581a8
equal deleted inserted replaced
202:9ee78481e7cd 204:a190811581a8
       
     1 from sdi.models import ParticipantInfo
       
     2 
       
     3 f = open('names.txt', 'w')
       
     4 for participant in participants:
       
     5     f.write('%s %s, %s\n' % (participant.participant.first_name, participant.participant.last_name, participant.participant.gender))
       
     6 
       
     7 f.close()