diff --git a/README.md b/README.md index c62812e..06f2f85 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # MusicCPR -The music education learning management system +The music education learning management system for support with the national core arts standards: create, perform, respond, and connect. [![Built with Cookiecutter Django](https://img.shields.io/badge/built%20with-Cookiecutter%20Django-ff69b4.svg?logo=cookiecutter)](https://github.com/cookiecutter/cookiecutter-django/) [![Black code style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black) @@ -158,3 +158,5 @@ Prefer to have: ## Media (sample audio) Files not working in deployed environment 1. i needed to tell s3 bucket that it should make another directory public access +## Devops +1. Black Formatter GH Action on PR diff --git a/teleband/assignments/api/views.py b/teleband/assignments/api/views.py index 9f06f3b..64b4714 100644 --- a/teleband/assignments/api/views.py +++ b/teleband/assignments/api/views.py @@ -36,12 +36,7 @@ class ActivityViewSet(RetrieveModelMixin, ListModelMixin, GenericViewSet): def get_queryset(self): # Define a subquery to get the first assignment for each activity distinct_activity_assignments = ( - Assignment.objects.filter( - enrollment__course__slug=self.kwargs["course_slug_slug"], - activity=OuterRef("id"), - ) - .order_by("id", "pk") - .values("activity_id")[:1] + Assignment.objects.filter(enrollment__course__slug=self.kwargs["course_slug_slug"], activity=OuterRef("id"),).order_by("id", "pk").values("activity_id")[:1] ) # Use the subquery to filter the main queryset