def filterResultsByRunsetFolder(runSets, form):
    """
    Filters out results that don't have the specified runsetFolder name
    """
    ret = []
    for runset in runSets:
        if runset.runsetFolder == form['runset'].value:
            ret.append(runset)
    return ret