change in get_apps_for_groups

changes made in get_apps_for_groups to get the apps according to the attribute values