@action(route="/radiovis/channels/set/<id>/<pictureid>")
@only_orga_admin_user()
@json_only()
def radiovis_channels_set(request, id, pictureid):

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

    picture = Picture.query.filter_by(orga=int(request.args.get('ebuio_orgapk')), id=int(pictureid)).first()

    if picture:
        object.default_picture_id = picture.id
    else:
        object.default_picture_id = None

    db.session.commit()

    return {}
Test ascii 1D / 2D export
dataset/ETHPy150Open ebu/radiodns-plugit/RadioDns-PlugIt/radiovis/actions.py/radiovis_channels_set--crossover with--dataset/ETHPy150Open mikrosimage/ColorPipe-tools/test/abstract_lut_test.py/AbstractLUTTest.test_ascii_lut