AKScheduling.checks module

AKScheduling.checks.aks_with_unfulfillable_requirements(event: Event, qs=None)[source]

Get all AKs that have unfulfillable requirements.

An AK has unfulfillable requirements if there is no room in the event that fullfills all of its requirements.

Parameters:
  • event – Event to check

  • qs – Queryset of AKs to check. If None, all AKs of the event are checked.

Returns:

List of all AKs with unfulfillable requirements.

Return type:

List[AK]

AKScheduling.checks.aks_too_big(event: Event, qs=None)[source]

Get all AKs that are too big to fit into any room of the event.

Parameters:
  • event – Event to check

  • qs – Queryset of AKs to check. If None, all AKs of the event are checked.

Returns:

List of all AKs that are too big to fit into any room.

Return type:

List[AK]

AKScheduling.checks.aks_not_in_default_schedules(event: Event, qs=None)[source]

Get all AKs without any availabilities inside the default schedules (strict and those inside default slots but not ones matching their category)

Parameters:
  • event – Event to check

  • qs – Queryset of AKs to check. If None, all AKs of the event are checked.

Returns:

Two lists AKs, first those that cannot be placed in any default slot, second those that can only be placed in a slot not machting their category.

Return type:

List[AK], List[AK]