Fix linting
This commit is contained in:
parent
9911117df5
commit
bf3582d338
|
|
@ -246,4 +246,4 @@
|
|||
"settings": {
|
||||
"emailNotifications": "Email Benachrichtigungen"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -247,4 +247,4 @@
|
|||
"settings": {
|
||||
"emailNotifications": "Notifications par e-mail"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -247,4 +247,4 @@
|
|||
"settings": {
|
||||
"emailNotifications": "Notifiche e-mail"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
),
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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 "-"
|
||||
|
|
|
|||
Loading…
Reference in New Issue