Added a script to generate CSV of full name and gender of participants who have confirmed participation. anoop
authorMadhusudan.C.S <madhusudancs@fossee.in>
Mon, 02 Aug 2010 18:02:52 +0530
branchanoop
changeset 204 a190811581a8
parent 202 9ee78481e7cd
child 205 3381ac722e36
Added a script to generate CSV of full name and gender of participants who have confirmed participation.
scripts/fetch_name_gender.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/fetch_name_gender.py	Mon Aug 02 18:02:52 2010 +0530
@@ -0,0 +1,7 @@
+from sdi.models import ParticipantInfo
+
+f = open('names.txt', 'w')
+for participant in participants:
+    f.write('%s %s, %s\n' % (participant.participant.first_name, participant.participant.last_name, participant.participant.gender))
+
+f.close()