def get_fun(fun):
    '''
    Return the most recent jobs that have executed the named function
    '''
    conn, mdb = _get_conn(ret=None)
    ret = {}
    rdata = mdb.saltReturns.find_one({'fun': fun}, {'_id': 0})
    if rdata:
        ret = rdata
    return ret
def get_fun ( fun ) : conn , mdb = _get_conn ( ret = None ) ret = { } rdata = mdb . saltReturns . find_one ( { 'fun' : fun } , { '_id' : 0 } ) if rdata : ret = rdata return ret
Return the most recent jobs that have executed the named function