[virtualcommons-developer] commit/vcweb: alllee: pushing readyParticipants field into Experiment.to
Status: Beta
Brought to you by:
alllee
|
From: <com...@bi...> - 2013-03-25 21:06:50
|
1 new commit in vcweb: https://bitbucket.org/virtualcommons/vcweb/commits/01ecaf4c3dc8/ Changeset: 01ecaf4c3dc8 User: alllee Date: 2013-03-25 22:06:51 Summary: pushing readyParticipants field into Experiment.to_dict Affected #: 2 files diff -r 558d2d7f7082a8aa23a918d4dd309eabc139ab1d -r 01ecaf4c3dc8cd940393ec906c995a0ec04cdf4a vcweb/boundaries/views.py --- a/vcweb/boundaries/views.py +++ b/vcweb/boundaries/views.py @@ -70,7 +70,6 @@ # round / experiment configuration data regrowth_rate = get_regrowth_rate(current_round) cost_of_living = get_cost_of_living(current_round) - experiment_model_dict['readyParticipants'] = experiment.ready_participants experiment_model_dict['costOfLiving'] = cost_of_living # instructions round parameters if current_round.is_instructions_round: diff -r 558d2d7f7082a8aa23a918d4dd309eabc139ab1d -r 01ecaf4c3dc8cd940393ec906c995a0ec04cdf4a vcweb/core/models.py --- a/vcweb/core/models.py +++ b/vcweb/core/models.py @@ -879,6 +879,7 @@ 'isActive': self.is_active, 'isArchived': self.is_archived, 'dollarsPerToken': float(ec.exchange_rate), + 'readyParticipants': self.number_of_ready_participants, } if include_round_data: experiment_dict['allRoundData'] = self.all_round_data() Repository URL: https://bitbucket.org/virtualcommons/vcweb/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. |