diff --git a/client/src/locales/de/translation.json b/client/src/locales/de/translation.json index 9c609eea..e1dbac5b 100644 --- a/client/src/locales/de/translation.json +++ b/client/src/locales/de/translation.json @@ -246,4 +246,4 @@ "settings": { "emailNotifications": "Email Benachrichtigungen" } -} \ No newline at end of file +} diff --git a/client/src/locales/fr/translation.json b/client/src/locales/fr/translation.json index f83ec0e2..ce39c427 100644 --- a/client/src/locales/fr/translation.json +++ b/client/src/locales/fr/translation.json @@ -247,4 +247,4 @@ "settings": { "emailNotifications": "Notifications par e-mail" } -} \ No newline at end of file +} diff --git a/client/src/locales/it/translation.json b/client/src/locales/it/translation.json index 57e6193f..8948cffc 100644 --- a/client/src/locales/it/translation.json +++ b/client/src/locales/it/translation.json @@ -247,4 +247,4 @@ "settings": { "emailNotifications": "Notifiche e-mail" } -} \ No newline at end of file +} diff --git a/client/src/pages/DashboardPage.vue b/client/src/pages/DashboardPage.vue index 9b664619..c3e806be 100644 --- a/client/src/pages/DashboardPage.vue +++ b/client/src/pages/DashboardPage.vue @@ -18,7 +18,6 @@ onMounted(async () => { const allDueDates = courseSessionsStore.allDueDates(); const getNextStepLink = (courseSession: CourseSession) => { - courseSessionsStore.allCourseSessions.forEach((courseSession) => {}); return computed(() => { if (courseSessionsStore.hasCockpit(courseSession)) { return courseSession.cockpit_url; diff --git a/server/vbv_lernwelt/course/creators/test_course.py b/server/vbv_lernwelt/course/creators/test_course.py index 931fc1e0..2366d0bd 100644 --- a/server/vbv_lernwelt/course/creators/test_course.py +++ b/server/vbv_lernwelt/course/creators/test_course.py @@ -42,7 +42,10 @@ from vbv_lernwelt.course_session.models import ( CourseSessionAttendanceCourse, ) from vbv_lernwelt.learnpath.models import ( - Circle, LearningContentAssignment, LearningContentAttendanceCourse, ) + Circle, + LearningContentAssignment, + LearningContentAttendanceCourse, +) from vbv_lernwelt.learnpath.tests.learning_path_factories import ( CircleFactory, LearningContentAssignmentFactory, @@ -128,9 +131,15 @@ def create_test_course(include_uk=True, include_vv=True, with_sessions=False): ) course = Course.objects.get(id=COURSE_TEST_ID) for cs in CourseSession.objects.filter(course_id=COURSE_TEST_ID): - for assignment in LearningContentAssignment.objects.descendant_of(course.coursepage): + for assignment in LearningContentAssignment.objects.descendant_of( + course.coursepage + ): create_course_session_assignment(cs, assignment) - for (attendance_course) in LearningContentAttendanceCourse.objects.descendant_of(course.coursepage): + for ( + attendance_course + ) in LearningContentAttendanceCourse.objects.descendant_of( + course.coursepage + ): create_course_session_attendance_course(cs, attendance_course) return course diff --git a/server/vbv_lernwelt/duedate/migrations/0008_auto_20230711_1116.py b/server/vbv_lernwelt/duedate/migrations/0008_auto_20230711_1116.py index b7e6d494..006f14b7 100644 --- a/server/vbv_lernwelt/duedate/migrations/0008_auto_20230711_1116.py +++ b/server/vbv_lernwelt/duedate/migrations/0008_auto_20230711_1116.py @@ -6,18 +6,18 @@ from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ - ('duedate', '0007_auto_20230703_1741'), + ("duedate", "0007_auto_20230703_1741"), ] operations = [ migrations.AlterField( - model_name='duedate', - name='start', + model_name="duedate", + name="start", field=models.DateTimeField(blank=True, db_index=True, null=True), ), migrations.AlterField( - model_name='duedate', - name='url', - field=models.CharField(blank=True, default='', max_length=1024), + model_name="duedate", + name="url", + field=models.CharField(blank=True, default="", max_length=1024), ), ] diff --git a/server/vbv_lernwelt/duedate/models.py b/server/vbv_lernwelt/duedate/models.py index aeb404c6..32484c39 100644 --- a/server/vbv_lernwelt/duedate/models.py +++ b/server/vbv_lernwelt/duedate/models.py @@ -29,9 +29,7 @@ class DueDate(models.Model): def Meta(self): ordering = ["start", "end"] verbose_name = _("Termin") - help = ( - "The end date is mandatory. You can set the start date if you want to have a deadline with a duration." - ) + help = "The end date is mandatory. You can set the start date if you want to have a deadline with a duration." def __str__(self): start_str = self.start.strftime("%Y-%m-%d %H:%M") if self.start else "-"