chore(allocation): minor text fixes and a minor exam refactor
This commit is contained in:
parent
06673e0031
commit
e3aacbbc10
@ -150,7 +150,7 @@ CourseAllocationMinCapacity: Minimale Teilnehmeranzahl
|
|||||||
CourseAllocationMinCapacityTip: Wenn der Veranstaltung bei der Zentralanmeldung weniger als diese Anzahl von Teilnehmern zugeteilt würden, werden diese stattdessen auf andere Kurse umverteilt
|
CourseAllocationMinCapacityTip: Wenn der Veranstaltung bei der Zentralanmeldung weniger als diese Anzahl von Teilnehmern zugeteilt würden, werden diese stattdessen auf andere Kurse umverteilt
|
||||||
CourseAllocationMinCapacityMustBeNonNegative: Minimale Teilnehmeranzahl darf nicht negativ sein
|
CourseAllocationMinCapacityMustBeNonNegative: Minimale Teilnehmeranzahl darf nicht negativ sein
|
||||||
CourseAllocationInstructions: Anweisungen zur Bewerbung
|
CourseAllocationInstructions: Anweisungen zur Bewerbung
|
||||||
CourseAllocationInstructionsTip: Wird den Studierenden angezeigt, wenn sie diese Veranstaltung in ihre Präferenzliste aufnehmen
|
CourseAllocationInstructionsTip: Wird den Studierenden angezeigt, wenn diese sich für Ihre Veranstaltung bewerben
|
||||||
CourseAllocationApplicationTemplate: Bewerbungsvorlagen
|
CourseAllocationApplicationTemplate: Bewerbungsvorlagen
|
||||||
CourseAllocationApplicationText: Text-Bewerbungen
|
CourseAllocationApplicationText: Text-Bewerbungen
|
||||||
CourseAllocationApplicationTextTip: Sollen die Studierenden Bewerbungen (ggf. zusätzlich zu abgegebenen Dateien) als unformatierten Text einreichen?
|
CourseAllocationApplicationTextTip: Sollen die Studierenden Bewerbungen (ggf. zusätzlich zu abgegebenen Dateien) als unformatierten Text einreichen?
|
||||||
|
|||||||
@ -206,10 +206,13 @@ homeUpcomingExams uid = do
|
|||||||
E.where_ $ E.exists $ E.from $ \participant ->
|
E.where_ $ E.exists $ E.from $ \participant ->
|
||||||
E.where_ $ participant E.^. CourseParticipantUser E.==. E.val uid
|
E.where_ $ participant E.^. CourseParticipantUser E.==. E.val uid
|
||||||
E.&&. participant E.^. CourseParticipantCourse E.==. course E.^. CourseId
|
E.&&. participant E.^. CourseParticipantCourse E.==. course E.^. CourseId
|
||||||
E.where_ $ E.isJust (exam E.^. ExamRegisterFrom)
|
let regFromJustFortnight =
|
||||||
E.&&. exam E.^. ExamRegisterFrom E.<=. E.just (E.val fortnight)
|
E.isJust (exam E.^. ExamRegisterFrom)
|
||||||
E.where_ $ E.isJust (exam E.^. ExamEnd)
|
E.&&. exam E.^. ExamRegisterFrom E.<=. E.just (E.val fortnight)
|
||||||
E.&&. exam E.^. ExamEnd E.>=. E.just (E.val now)
|
regToJustNow =
|
||||||
|
E.isJust (exam E.^. ExamEnd)
|
||||||
|
E.&&. exam E.^. ExamEnd E.>=. E.just (E.val now)
|
||||||
|
E.where_ $ regFromJustFortnight E.&&. regToJustNow
|
||||||
return (course, exam)
|
return (course, exam)
|
||||||
dbtRowKey = queryExam >>> (E.^. ExamId)
|
dbtRowKey = queryExam >>> (E.^. ExamId)
|
||||||
dbtProj r@DBRow{ dbrOutput } = do
|
dbtProj r@DBRow{ dbrOutput } = do
|
||||||
|
|||||||
Reference in New Issue
Block a user