[virtualcommons-svn] commit/vcweb: alllee: fixing bug with participant number
Status: Beta
Brought to you by:
alllee
From: Bitbucket <com...@bi...> - 2011-08-12 07:52:22
|
1 new changeset in vcweb: http://bitbucket.org/virtualcommons/vcweb/changeset/73646c605252/ changeset: 73646c605252 user: alllee date: 2011-08-12 09:52:12 summary: fixing bug with participant number affected #: 1 file (43 bytes) --- a/vcweb/lighterprints/views.py Thu Aug 11 16:49:33 2011 -0700 +++ b/vcweb/lighterprints/views.py Fri Aug 12 00:52:12 2011 -0700 @@ -136,8 +136,7 @@ chat_messages.append({ 'date_created': timesince(chat_message.date_created), 'message': chat_message.message, - 'participant_number': participant_group_relationship.participant_number, - 'participant': participant_group_relationship.participant + 'participant_number': chat_message.participant_group_relationship.participant_number, }) group_activity = [] performed_activities = ParticipantRoundDataValue.objects.filter(participant_group_relationship__group=group, submitted=True, parameter=get_activity_performed_parameter()).order_by('-date_created') @@ -147,7 +146,7 @@ activity = Activity.objects.get(pk=activity_prdv.value) performed_activity_dict = to_activity_dict(activity, attrs=('pk', 'display_name', 'name', 'icon_url', 'savings')) performed_activity_dict['date_performed'] = activity_prdv.date_created - performed_activity_dict['participant_id'] = participant_group_relationship.participant_number + performed_activity_dict['participant_id'] = activity_prdv.participant_group_relationship.participant_number performed_activity_dict['performed_activity_id'] = activity_prdv.pk group_activity.append(performed_activity_dict) return dumps({ 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. |