I'm trying to create a system to automatically assign items to a user based on who has the least amount of assigned items. Below I have the post function and the result of the dumps. It seems like the nested for loop is being executed async, because it dumps the result of the nested loop before any of the dumps that should be executed before it.
One thing I'm absolutely sure of is that the user ID being returned to assign does not have 0 items assigned to them.
Am I doing something incorrectly, or are there just limitations I would have to try and work around to get this to function the way I'd like it to?

