I have the following database of Firebase, under ‘c’ the user IDs are listed and for every user, I need to count the total occurence of 0’s or 1’s for the ‘route’ key.
With the following blocks, I have the userIDs stored in a list called driverList. I want to make another list with all the route values so I can count occurences of 1’s and 0’s but my for loop can’t append the route values into the driverListRoute list. Where could the problem be? Thank you so much.