[virtualcommons-developer] commit/vcweb: alllee: tuning message for experimenter / participants
Status: Beta
Brought to you by:
alllee
From: <com...@bi...> - 2013-03-27 10:44:19
|
1 new commit in vcweb: https://bitbucket.org/virtualcommons/vcweb/commits/ac8883ef68fd/ Changeset: ac8883ef68fd User: alllee Date: 2013-03-27 11:44:01 Summary: tuning message for experimenter / participants Affected #: 1 file diff -r 6fed7a80dc3ef56617679869a3c9f5d788908745 -r ac8883ef68fd2650fcf5004feb132b277e4eb4c5 vcweb/boundaries/views.py --- a/vcweb/boundaries/views.py +++ b/vcweb/boundaries/views.py @@ -37,10 +37,10 @@ pgr = get_object_or_404(ParticipantGroupRelationship, pk=participant_group_id) harvest_decision = form.cleaned_data['integer_decision'] set_harvest_decision(pgr, harvest_decision, experiment.current_round_data, submitted=True) - message = "%s harvested %s trees" % (pgr.participant, harvest_decision) - experiment.log(message) + message = "%s harvested %s trees" + experiment.log(message % (pgr.participant, harvest_decision)) return JsonResponse(dumps({ 'success': True, 'experimentModelJson': get_view_model_json(experiment, pgr), - 'message': message})) + 'message': message % (pgr.participant_handle, harvest_decision)})) else: logger.debug("form was invalid: %s", form) for field in form: 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. |