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
|
||||
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
|
||||
-- ^ reduce room capacity for every pre-assigned user by 1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user