Optimise a bit.
As this is called in a loop, only try to find delivery lines for occupied partitions. Otherwise two queries lasting 0.3s each will be called in order to result with None.
Showing
Please register or sign in to comment
As this is called in a loop, only try to find delivery lines for occupied partitions. Otherwise two queries lasting 0.3s each will be called in order to result with None.