# HG changeset patch # User Lennard de Rijk # Date 1237323067 0 # Node ID 77c726b969162d1de279fab3f5213d7da1388335 # Parent 334094450b77668401df3212da9709dfd9864a00 Cleaned up the proposal data that gets put into a JSON object. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed diff -r 334094450b77 -r 77c726b96916 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}