@action(route="/stations/", template="stations/home.html")
@only_orga_member_user()
def stations_home(request):

    list = []

    for elem in Station.query.filter_by(orga=int(request.args.get('ebuio_orgapk'))).order_by(Station.name).all():
        list.append(elem.json)

    saved = request.args.get('saved') == 'yes'
    deleted = request.args.get('deleted') == 'yes'
    passworded = request.args.get('passworded') == 'yes'

    return {'list': list, 'saved': saved, 'deleted': deleted, 'passworded': passworded}
Show the list of stations.
dataset/ETHPy150Open ebu/radiodns-plugit/RadioDns-PlugIt/stations/actions.py/stations_home