Cleaned up the proposal data that gets put into a JSON object.
authorLennard de Rijk <ljvderijk@gmail.com>
Tue, 17 Mar 2009 20:51:07 +0000
changeset 1918 77c726b96916
parent 1917 334094450b77
child 1919 1ec857439499
Cleaned up the proposal data that gets put into a JSON object. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/views/models/program.py
--- a/app/soc/views/models/program.py	Tue Mar 17 20:24:59 2009 +0000
+++ b/app/soc/views/models/program.py	Tue Mar 17 20:51:07 2009 +0000
@@ -453,8 +453,6 @@
       student_proposal_entities = student_proposal_logic.logic.getForFields(
           fields, limit=slots_left_to_assign, order=order)
 
-      proposal_data = {}
-
       # store each proposal in the dictionary
       for proposal in student_proposal_entities:
         student_entity = proposal.scope
@@ -467,9 +465,6 @@
             'org_key': org.key().name()
             }
 
-      # store it with the other org data
-      proposals_data['proposals'] = proposal_data
-
     # return all the data in JSON format
     data = {'orgs': orgs_data,
             'proposals': proposals_data}