From 83370a7797d545676c7cd289163e54873f96df28 Mon Sep 17 00:00:00 2001 From: "Michael C. Stewart" Date: Thu, 26 Sep 2024 12:07:47 -0400 Subject: [PATCH 1/3] Update views.py deleted whitespace to test black formatter github action on PR --- teleband/assignments/api/views.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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 From a9ff7031a8d038455684db5dd34db9f570a133dc Mon Sep 17 00:00:00 2001 From: "Michael C. Stewart" Date: Thu, 26 Sep 2024 12:18:14 -0400 Subject: [PATCH 2/3] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index c62812e..2ca1e5b 100644 --- a/README.md +++ b/README.md @@ -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 From 1370563c5d3b0d6df110f2dbd3a16adad54dfbbc Mon Sep 17 00:00:00 2001 From: "Michael C. Stewart" Date: Thu, 26 Sep 2024 12:21:46 -0400 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2ca1e5b..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)