def now_have_file_projs():
    ps = get_file_projs(onlyid=True)
    ps = pd.DataFrame(ps, columns=['havef'])
    allp = get_all_projs()
    allp = pd.DataFrame(allp)

    allp = pd.merge(allp, ps, how='inner', left_on='id', right_on='havef')

    return allp[['id', 'name']]
def find_needed_project_ids():
    # docresponse = get_documenttask(projid=0)
    allproj = get_all_projs()
    if len(allproj) == 0:
        return []
    projs = pd.DataFrame(allproj)['id'].tolist()

    if len(projs) == 0:
        return []

    return sorted(set([p for p in projs if p not in config.exclude_projects]), reverse=True)