@rpc4django.rpcmethod(
    name='simulation.sc.passes',
    signature=['String', 'Object'],
    login_required=satnet_settings.JRPC_LOGIN_REQUIRED
)
def get_sc_passes(spacecraft_id, groundstations):
    slots = {}
    spacecraft = segment_models.Spacecraft.objects.get(identifier=spacecraft_id)

    if not groundstations or len(groundstations) == 0:

        groundstations = segment_models.GroundStation.objects.all().values_list(
            'identifier', flat=True
        )

    for groundstation_id in groundstations:

        slots[groundstation_id] = pass_serializer.serialize_pass_slots(
            pass_models.PassSlots.objects.filter(
                spacecraft=spacecraft,
                groundstation__identifier=groundstation_id
            )
        )

    return slots
Return True (all True), False (any False) or None.
dataset/ETHPy150Open satnet-project/server/services/simulation/jrpc/views/passes.py/get_sc_passes--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/core/logic.py/fuzzy_and