Bugfix: SAssignR time attribute
This commit is contained in:
parent
673d98ff91
commit
b27fb8f391
@ -427,7 +427,8 @@ knownTags = Map.fromList -- should not throw exceptions, i.e. no getBy404 or req
|
|||||||
cTime <- liftIO getCurrentTime
|
cTime <- liftIO getCurrentTime
|
||||||
let
|
let
|
||||||
visible = NTop sheetVisibleFrom <= NTop (Just cTime)
|
visible = NTop sheetVisibleFrom <= NTop (Just cTime)
|
||||||
active = sheetActiveFrom <= cTime && cTime <= sheetActiveTo
|
active = sheetActiveFrom <= cTime && cTime <= sheetActiveTo
|
||||||
|
marking = cTime > sheetActiveTo
|
||||||
|
|
||||||
guard visible
|
guard visible
|
||||||
|
|
||||||
@ -436,7 +437,7 @@ knownTags = Map.fromList -- should not throw exceptions, i.e. no getBy404 or req
|
|||||||
SFileR SheetHint _ -> guard $ maybe False (<= cTime) sheetHintFrom
|
SFileR SheetHint _ -> guard $ maybe False (<= cTime) sheetHintFrom
|
||||||
SFileR SheetSolution _ -> guard $ maybe False (<= cTime) sheetSolutionFrom
|
SFileR SheetSolution _ -> guard $ maybe False (<= cTime) sheetSolutionFrom
|
||||||
SubmissionNewR -> guard active
|
SubmissionNewR -> guard active
|
||||||
SubmissionR _ SAssignR -> guard $ not active -- Correctors can only be assigned when the Sheet is inactive, since submissions are subject to change
|
SubmissionR _ SAssignR -> guard $ marking -- Correctors can only be assigned when the Sheet is inactive, since submissions are subject to change
|
||||||
SubmissionR _ _ -> guard active
|
SubmissionR _ _ -> guard active
|
||||||
_ -> return ()
|
_ -> return ()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user