Make sure we include the state flags for the plays as well as the counts

This commit is contained in:
Matthew Jones 2014-06-12 16:09:41 -04:00
parent 54204becf5
commit 94e843dc71

View File

@ -1506,10 +1506,10 @@ class JobJobPlaysList(BaseJobEventsList):
ok_count = change_aggregate['id__count']
else:
changed_count = change_aggregate['id__count']
play_details['ok'] = ok_count
play_details['failed'] = failed_count
play_details['changed'] = changed_count
play_details['skipped'] = skipped_count
play_details['ok_count'] = ok_count
play_details['failed_count'] = failed_count
play_details['changed_count'] = changed_count
play_details['skipped_count'] = skipped_count
all_plays.append(play_details)
return Response(all_plays)