def get_minions():
 serv = _get_serv(ret=None)
 sql = 'select distinct(id) from returns'
 data = serv.query(sql)
 ret = []
 if data:
  for jid in data[0]['points']:
   ret.append(jid[1])
 return ret

def get_minions ( ) : serv = _get_serv ( ret = None ) sql = 'select distinct(id) from returns' data = serv . query ( sql ) ret = [ ] if data : for jid in data [ 0 ] [ 'points' ] : ret . append ( jid [ 1 ] ) return ret
return a list of minions .