Mar-15-2021, 05:25 PM
Hi
I need some help. I'm trying to filter two fieds in json but its not working. This json is from API and have a lot of pages. In first page its work very weel but when I put this same code in 'While' to get next page, do not work
This is what Im trying to do
I need some help. I'm trying to filter two fieds in json but its not working. This json is from API and have a lot of pages. In first page its work very weel but when I put this same code in 'While' to get next page, do not work
This is what Im trying to do
results['data'] = [x for x in results['data'] if x['id_employee'] in [14,67] and x['active'] == 'true']Can someone help and say what Iam doing wrong please