fix: make sure to report NoUsers, regardless of rule
This commit is contained in:
parent
e13049d958
commit
9c928b0375
@ -347,7 +347,8 @@ examAutoOccurrence (hash -> seed) rule ExamAutoOccurrenceConfig{..} occurrences
|
|||||||
]
|
]
|
||||||
takeEnd n chars = drop (length chars - n) chars
|
takeEnd n chars = drop (length chars - n) chars
|
||||||
in Map.mapKeysWith Set.union (takeEnd . F.minimum . Set.map length $ Map.keysSet matrUsers) matrUsers
|
in Map.mapKeysWith Set.union (takeEnd . F.minimum . Set.map length $ Map.keysSet matrUsers) matrUsers
|
||||||
_ -> Map.singleton [] $ Map.keysSet users
|
_ | null users-> Map.empty
|
||||||
|
| otherwise -> Map.singleton [] $ Map.keysSet users
|
||||||
|
|
||||||
occurrences' :: Map ExamOccurrenceId Natural
|
occurrences' :: Map ExamOccurrenceId Natural
|
||||||
-- ^ reduce room capacity for every pre-assigned user by 1
|
-- ^ reduce room capacity for every pre-assigned user by 1
|
||||||
|
|||||||
Reference in New Issue
Block a user