@rpc4django.rpcmethod(
    name='simulation.gs.passes',
    signature=['String', 'Object'],
    login_required=satnet_settings.JRPC_LOGIN_REQUIRED
)
def get_gs_passes(groundstation_id, spacecraft):
    slots = {}
    groundstation = segment_models.GroundStation.objects.get(
        identifier=groundstation_id
    )

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

        spacecraft = segment_models.Spacecraft.objects.all().values_list(
            'identifier', flat=True
        )

    for spacecraft_id in spacecraft:

        slots[spacecraft_id] = pass_serializer.serialize_pass_slots(
            pass_models.PassSlots.objects.filter(
                spacecraft__identifier=spacecraft_id,
                groundstation=groundstation
            )
        )

    return slots
Return (date_list, items, extra_context) for this request.
dataset/ETHPy150Open satnet-project/server/services/simulation/jrpc/views/passes.py/get_gs_passes--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/views/generic/dates.py/BaseTodayArchiveView.get_dated_items