def get_minions():
    with _get_serv(ret=None, commit=True) as cur:

        sql = '''SELECT DISTINCT id
                FROM `salt_returns`'''

        cur.execute(sql)
        data = cur.fetchall()
        ret = []
        for minion in data:
            ret.append(minion[0])
        return ret
Update a user preference
dataset/ETHPy150Open saltstack/salt/salt/returners/mysql.py/get_minions--crossover with--dataset/ETHPy150Open ducksboard/libsaas/libsaas/services/desk/users.py/User.update_preference