Fixed a blatant bug with the looping element in the send mail script for accommodation allotment. anoop
authorMadhusudan.C.S <madhusudancs@gmail.com>
Fri, 06 Aug 2010 14:41:41 +0530
branchanoop
changeset 219 3d3e4e4afb61
parent 218 16d1aae679a4
child 220 1ecfbc16a70d
Fixed a blatant bug with the looping element in the send mail script for accommodation allotment.
scripts/allot_acco.py
--- a/scripts/allot_acco.py	Fri Aug 06 14:25:40 2010 +0530
+++ b/scripts/allot_acco.py	Fri Aug 06 14:41:41 2010 +0530
@@ -63,7 +63,7 @@
             availability[2] -= 1
             reg_info.save()
 
-    for participant in acco_given:
+    for participant in acco_rejected:
         reg_info = participant.participant.registrantinfo_set.get()
         reg_info.status_of_accomodation = '3'
         reg_info.save()