@action(route="/radiovis/channels/logs/<id>/", template="radiovis/channels/logs.html")
@only_orga_admin_user()
def radiovis_channels_logs(request, id):

    object = Channel.query.join(Station).filter(Channel.id == int(id), Station.orga==int(request.args.get('ebuio_orgapk'))).first()

    if not object:
        abort(404)
        return

    list = []

    for logentry in LogEntry.query.filter(LogEntry.topic.ilike(object.topic + '%')).order_by(-LogEntry.reception_timestamp).all():
        list.append(logentry.json)

    return {'list': list, 'channel': object.json}
Show logs for a channel
dataset/ETHPy150Open ebu/radiodns-plugit/RadioDns-PlugIt/radiovis/actions.py/radiovis_channels_logs